killercelery
Programmer
Hi,
I'm currently trying to change the printer on witch a report is to be printed in Access 2000 (no printers collection) depending on multiple variables. The printer has to be selected in the code.
I use the following APIs: -OpenPrinter
-StartDocPrinter
-StartPagePrinter
-WritePrinter
-EndPagePrinter
-EndDocPrinter
-ClosePrinter
As you know, their is no pointer in VBA so i use some methods to get "pointer".
OpenPrinter returns a "pointer" to a printer that I use with all other APIs.
The problem:
I can't find a method of a API that returns a pointer to the report I must print nor one that returns a pointer to the data to be printed.
If you have any idea what I should use or of an even better way to solve the printer selection process... help me plz, my mind is about to crack!
I'm currently trying to change the printer on witch a report is to be printed in Access 2000 (no printers collection) depending on multiple variables. The printer has to be selected in the code.
I use the following APIs: -OpenPrinter
-StartDocPrinter
-StartPagePrinter
-WritePrinter
-EndPagePrinter
-EndDocPrinter
-ClosePrinter
As you know, their is no pointer in VBA so i use some methods to get "pointer".
OpenPrinter returns a "pointer" to a printer that I use with all other APIs.
The problem:
I can't find a method of a API that returns a pointer to the report I must print nor one that returns a pointer to the data to be printed.
If you have any idea what I should use or of an even better way to solve the printer selection process... help me plz, my mind is about to crack!