Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print to file
Message
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Title:
Miscellaneous
Thread ID:
00411487
Message ID:
00411513
Views:
13
>>>>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?

Ah, that may be the problem. I'm not real familiar with the API. Could you give me the syntax for SendMessage()? Keep in mind this is for 2.6.
Thanks.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform