Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Default Printer Properties
Message
From
18/07/2003 13:33:30
Gary Foster
Pointsource Consulting LLC
Chanhassen, Minnesota, United States
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00806026
Message ID:
00811568
Views:
26
Hi,
The problem is that we're not using a VFP report. We have to control printing from a variety of sources such as Word mostly but also Crystal and maybe more. We have a ton of documents that print out all day long. The batch jobs might include letters, membership cards, invoices, etc. that print on a number of different printers and stock, sometimes duplex, sometimes not, both during the day and unattended at night. We simply need to be able to set printers and attributes for these documents.

We are making good progress with the Word stuff using both API calls such as DocumentProperties and Word application calls to ActiveDocument.PrintOut. We have to use them both because Printout doesn't handle duplex and the DEVMODE structure doesn't seem to account for printing to file, both of which we need to do.

Gary


>Hold on a moment!!
>
>That would work, but you can also manipulate the FRX as a table and do it that way.
>
>For example, if you search on support.microsoft.com under VFP for "duplex" you'll see some articles mentioned.
>
>Basically, you can select things like paper size, bin/source, duplex, etc by altering the value of the EXPR column for OBJTYPE=53 etc.
>
>This is a lot easier, but remember that (usually), you'll want to manipulate a copy of your FRX. Issuing something like
>use masterreport.frx
>copy to (newreport.frx)
>will also copy the associated .frt file
>
>I hope this helps.
>
>The other place to look is on www.news2news.com - lots of useful stuff on accessing devmode structures that you might need.
>
>Regards
>Simon
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform