Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Setup page and printer programmatically?
Message
From
29/06/2007 06:34:37
Tran Ba Tuyen
Institut of Information Technology
Ho Chi Minh City, Vietnam
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
01235293
Message ID:
01236736
Views:
13
I found the solution for my question!

I use the utility of FAQ #21202 to add a printer form.
Next, I use SYS(1037) to set environment's printer name and page.
After that, I open report file exclusive, blank expr, tag, tag2, and use SYS(1037,2) to update those three fields with environment's printer name and page.

SYS(1037)
USE MYREPORT EXCLUSIVE
BLANK FIELDS EXPR, TAG, TAG2
SYS(1037,2)
USE

Thanks for your replies,

Tuyen

>Hi Naomi and Edward,
>
>I used the utility of FAQ #21202. I also used FAQ article "Enumerating printer forms under Windows NT/2K/XP (February 18, 2004)" to change contents of "Expr" of first record, but VFP dont't see.
>
>I think must change contents of "Tag" and "Tag2" but i can't.
>
>Tuyen

You should strip all printer related info from your report, e.g. Tag & Tag2 should be empty.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform