Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Print to file
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Titre:
Divers
Thread ID:
00411487
Message ID:
00411508
Vues:
16
>>>I'm using the API to change my default printer to "Acrobat PDFWriter" so that I can print a report to a pdf file. Everything works great in NT. When I try in 95 I get the error "printer not ready". If I add the prompt keyword to the command, the print dialog comes up, you hit ok and the report is printed to a pdf file. Is there a way to get this to work in 95 without the dialog.
>>
>>Disclaimer: This has only been done in testing under Win98SE with version 4.0 of the PDF Writer.
>>
>>By setting the printer to the Acrobat Writer in the report form itself (in the design mode), I've been able to do this without problem. Simply issued the report command (no PROMPT clause) and Acrobat took care of the rest.
>
>Unfortunately this is not an option. These reports have already been created and out in the field. When the report needs to be distributed to branch offices the user decides to print to file

OK, let me ask you this: You say you're using the API to change the default, right? If so, then you're using WriteProfileString() to update the WIN.INI file, by setting the device entry in the Windows section. So my question is: Are you using SendMessage() to broadcast the change to all top-level windows?
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform