Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printer Setting
Message
 
To
16/03/2001 07:36:43
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Miscellaneous
Thread ID:
00485784
Message ID:
00486395
Views:
10
What you need to do is remove all printer settings from the design report. Do that by opening the .frx file as a table and issuing the following command on the first record

REPLACE Expr WITH '', TAG WITH '', TAG2 WITH ''

This removes the printer settings of the default printer during design.

Then recompile the app without opening the report in design. In the code, you can either specify a PRINTERNAME with the same name as the printer you want (kind of messy since it requires every user to have a printer with that name) or instruct the user to specify a particular type of printer as their default and let them assign it in the app (USING GETPRINTER()). The report will then print according to the drivers of the assigned printer at runtime.

HTH,

Bill


>Does Anyone know or help on printer setting ?
>For example: When I open the report in design mode then i go to page setup and change printer driver and save it. Then the report can print smoothly.
>It that possible to change page setup and printer driver from compiled application and all the report will follows this printer driver setting ?
>Not need to go to design mode and open report and page setup .
>
>Sorry for english . Thanks. Coding will be appreciated
CySolutions, Medical Information Technology
You're only as good as your last
success, so . . .If it works. . .don't fix it!
Previous
Reply
Map
View

Click here to load this message in the networking platform