473,322 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Printing PDF Files


Hi Friends,

Does anybody of you know a method on how to print PDF documents from
an application to a specific printer not to the default printer.I have
done for the default printer. I need to do it for the user specific
printer
char *path = "c:\\ctpg.pdf";
ShellExecute(NULL, "open", path, NULL, NULL, SW_NORMAL);
ShellExecute(NULL, "print", path, NULL, NULL, SW_NORMAL);
this prints to the default printer. Please help me regarding this.

Thanx in advance
Mullai

Nov 8 '06 #1
1 1019
>Does anybody of you know a method on how to print PDF documents from
>an application to a specific printer not to the default printer.I have
done for the default printer. I need to do it for the user specific
printer
char *path = "c:\\ctpg.pdf";
ShellExecute(NULL, "open", path, NULL, NULL, SW_NORMAL);
ShellExecute(NULL, "print", path, NULL, NULL, SW_NORMAL);
this prints to the default printer. Please help me regarding this.
Have a look for information on using the "printto" verb. I've never
used it myself, but that's apparently what the shell supports for Drag
& drop to printers.

Dave
Nov 8 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: db | last post by:
Hi group I have noticed that the printing framework in java supports a great deal of files, but not MS/Word .doc files. So if I want to print doc files what should I do? Get a lib that supports...
7
by: Kamilche | last post by:
I'm pretty desperate to get color syntax printing. I just tried out the evaluation version of 'Komodo', which several people in here suggested, and its print features are terrible. The text is...
11
by: cybertof | last post by:
Hello, Is there a way to easily print a .pdf file to the printer ? (without an external component) Thanks.
4
by: Arif | last post by:
I C# code prints very slow as compared to a third party barcode printing software. That software prints approximately 10 labels in 2 seconds while my C# code prints 10 labels in 5 to 6 seconds. And...
1
by: hamil | last post by:
I am trying to print a graphic file (tif) and also use the PrintPreview control, the PageSetup control, and the Print dialog control. The code attached is a concatination of two examples taken out...
0
by: ryanf | last post by:
Hello, I need some help with printing pdf files through php. I have a script that will create many pdf files but I want them printed. I found this program to print pdf from the command line from...
0
by: Hank | last post by:
We have been printing pdf files through Adobe, from Access for several years. Adobe version 5.0 is currently installed. Recently we have received PDF files that were created under the Adobe 7.0...
3
by: crashonyou | last post by:
hello again..i've been searching for quite some time now already looking for a solution to printing word documents with python..same thing for internet explorer..i was experimenting around with some...
8
by: Neo Geshel | last post by:
Greetings. BACKGROUND: My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are delivered as application/xhtml+xml for all non-MS web clients, and as text/xml for all MS web...
1
by: crashonyou | last post by:
hello..would just like to ask a little help here regarding printing pdf files..i am currently making an automated system for printing files and i have encountered an interesting problem..i already...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.