Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing in Excel
Message
 
To
03/06/2006 12:22:39
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
01126920
Message ID:
01126924
Views:
16
>I tried to give the users the option to print immediately from a report generated for Excel, i.e., without even showing the file on screen. IIRC, I used the PrintOut() method; both of the following worked:
>
>
>loSheet.PrintOut()
>
>
>and
>
>
>loWorkbook.PrintOut()
>
>
>(Or some equivalent, according to the classes used.)
>
>Two questions:
>
>1. This command prints immediately, to the default printer. Is there a way to have the print dialog appear, e.g. to select a different printer?
#define xlDialogPrint 8
eExcel.Dialogs(xlDialogPrint).Show
>
>2. I suspect that loWorkbook.PrintOut() will print all sheets in the workbook - can anyone confirm this?

Confirmed :-)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform