Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Report Form ( file name ) gives different sizes
Message
De
14/04/2008 15:51:05
 
 
À
14/04/2008 15:39:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 2000 SP4
Database:
MS SQL Server
Divers
Thread ID:
01275705
Message ID:
01310528
Vues:
7
Hi Srdjan,

Yes, I tried set printer to, both in vfp and outside, by hand, no problem if it was outside vfp. That is why I went with the solution that I did. VFP's setting of the default print was not being recongized by the OS.

Beth

>Hi Beth,
>Did you try what Sergey advised you ?
>set printer to name (whatever)
>and then check that VFP actually recognised it as selected printer ?
>
>I never tried (needed) API/shell solution for this, but would assume that
>if you change selected printer outside VFP (via API/Shell) then you should also let VFP know about it.
>
>
>>
>>Yes, I resolved this, by changing my code to call windows API:
>>
>>  lOCAL lcDefaultprinter, oWSHNet
>>  lcDefaultprinter = SET("Printer", 2)
>>  oWSHNet = CREATEOBJECT('Wscript.Network')
>>
>>  oWSHNet.SetDefaultPrinter("Acrobat PDFWriter")  && If setting the printer to specific driver
>>
>>  oWSHNet.SetDefaultPrinter( lcDefaultprinter)  && returning default printer to what it was
>>
>>  oWSHNet.SetDefaultPrinter(gaPrinters(lnPos,1))  && If setting the printer to user picked driver ;
>>                                                  && or found PS driver
>>
>>
>>HTH
>>Beth
>>
>>>Hi Beth,
>>>
>>>Did you resolve this problem? I'm having the exact same issue and have been going crazy trying to figure out a solution.
>>>
>>>TIA!
>>>-Kevin
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform