Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Report will not print to set printer
Message
 
 
To
11/01/2011 10:53:58
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01495655
Message ID:
01495659
Views:
68
>I have an application that I am converting from vfp6 to vfp9. In a form I have created a report that is created and printed to a pdf.'The pdf printer is set to silently save the pdf in a folder and then later an email will pick it up in an attachment.
>
>The following code works fine in vfp6. But in vfp9 even though I set the printer to the pdf printer it prints to the default printer. ( a laser printer).
> If I set the default printer to the pdf from windows then it will print correctly to the pdf printer.
>
>LOCAL m.goodtogo
>m.goodtogo=.f.
>*check to be sure pdfFactory is installed on computer
>cprintername="pdfFactory"
>SET exact on
>APRINTER(cprinters)
>nfound=ascan(cprinters,cprintername)&&see if pdf factory is on computer
>IF nfound > 0
> SET Printer To Name (cprintername)
> m.goodtogo=.t.
>else
>*message telling user printer is not installed
>endif
>
>REPO form rcard to print noconsole
>
> WAIT window "Creating pdf file "+ alltrim(rcard.schname) + "RECEIVEDCARD.pdf" timeout 1
>
> SET Printer To Default &&set printer back to the original
>
>
>thanks,
>
>Randy

1. Have you checked if the Report Environment is not saved with the Report?
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform