Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select networked printer programatically
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00485008
Message ID:
00485422
Views:
13
What error are you getting? Why are you using the prompt in the Report Form Statement. You have already prompted the user for the printer in the GETPRINTER statement. I would either use the GETPRINTER statement or the prompt in the Report Form Statement. The prompt gives you more control.


cPrinter = GETPRINTER( )
SET PRINTER TO NAME (cPrinter)
SET DEVICE TO PRINTER
SET PRINTER ON
If ThisForm.stcntletter.Stcheckbox1.value = 1
Report Form strpconshorseletter to printer Preview
Else
Report Form strpconshorseletter for cons_no = thisform.stcntletter.stcmbcon.value to printer Preview
Endif

------------------------- or -----------------------------

If ThisForm.stcntletter.Stcheckbox1.value = 1
Report Form strpconshorseletter to printer Prompt Preview
Else
Report Form strpconshorseletter for cons_no = thisform.stcntletter.stcmbcon.value to printer Prompt Preview
Endif
Clark McClendon
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform