For Programmers: Free Programming Magazines  


Home > Archive > PowerBuilder > August 2005 > Changing printer properties PB8









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Changing printer properties PB8
Tomasz Korczak

2005-08-08, 5:04 pm

Hello,

My problem isn't so simple I thought first time. I'd like to change printer
properties exactly as would you in printer properties in windows. The whole
problem is that I don't want to print DW, I print some documents by running
external programs (Acrobat Reader in this case). I need to specify paper
tray (I've got various type of docs to be printed on different types of
paper) and change needs to be remebered by os.
I tried to use some winapi functions with no success:( Anyone got any clue
how do do this? Any help appreciated:)

Best regards
Tom




msdi

2005-08-15, 1:06 pm

Don't be too exited while seeing this response :(

I am looking for the same thing as you are, and I've been doing a lot of research to try to solve the problem...

Unfortunately, I haven't found a viable solution yet... Adobe acrobat SDK cannot print to a specific paper tray so you can forgot this.

I found a company in Taiwan that coded a sdk based on the pdf standard (so they are not using adobe's) and I am currently trying to get a demo of it: http://www.pdfwizard.com/eng/product/core.asp

A very dirty way that might work (not tested yet) would be to create ghost copies of the same printer.

For exemple, let say you have a laserjet with 3 trays... You could create 3 printers each of them configured with a default tray and then print to the printer name using the command line or the api or the javascript (acrobat can print with javascript)

I'm pretty sure this would work, but I'm personnaly looking for a large scale deployment, so this is the kind of scenario totally innaceptable :)

Hope it helps a bit...




quote:
Originally posted by Tomasz Korczak
Hello,

My problem isn't so simple I thought first time. I'd like to change printer
properties exactly as would you in printer properties in windows. The whole
problem is that I don't want to print DW, I print some documents by running
external programs (Acrobat Reader in this case). I need to specify paper
tray (I've got various type of docs to be printed on different types of
paper) and change needs to be remebered by os.
I tried to use some winapi functions with no success:( Anyone got any clue
how do do this? Any help appreciated:)

Best regards
Tom

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com