Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error 1958 w/ object assisted repo form + no printer
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Error 1958 w/ object assisted repo form + no printer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01014730
Message ID:
01014730
Views:
92
This msdn link:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_foxhelp9/html/1845aee0-11f6-4d09-bfbd-b1847476a3d1.asp

says that object assisted printing will fail if there is no printer installed or the print spooler is not started in the executing environment. It suggests that getpageheight() and getpagewidth() can be used to give VFP enough information to prevent the "Error loading printer driver (Error 1958)" which occurs when trying to execute the REPORT FORM ... command.

Can anybody show me how to modify the following to accomplish this?

...code to build the print cursor
Do (_reportOutput) With 5, loListener
loListener.quietmode = .t.
Report Form budget.frx Object loListener
lc=FiletoStr(loListener.targetfilename)
... code to send lc to the asp page

Thanks for any help.
Paul Emery
theoakgrove@lansing.com
the Oakgrove Computer Group, Inc.
Grand Rapids, Michigan, USA
1-616-456-7133
Next
Reply
Map
View

Click here to load this message in the networking platform