Click here to Skip to main content
13,056,352 members (109,686 online)
Rate this:
 
Please Sign up or sign in to vote.
See more:
Hi all,

There are four parts of my tasks.
1) Download an encrypted pdf file from server.
2) Decrypt that file with a particular key.
3) Edit the pdf file and add some text in this.
4) Print that file on a network printer.

I can manage all the tasks above with a hard copy on the local machine. But I need to do it without saving a copy of the file on the machine.
The first three tasks are completed without making a hard copy on local machine but for printing purpose I need to save a copy of file with the help of bytes[], after that I print it.

My problem is that I need to print bytes[] without saving a copy on the local machine. These bytes can contain text, formatted text and images etc.

In simple words I need a procedure that can print a byte[] to a network printer.
I googled it and all the paths are going to only one destination that is http://support.microsoft.com/kb/322091[^] in this code I don't get any errors but the printer doesn't print the bytes and give only printing errors.

Please help.

Thanks in advance.

Regards,
Puneet Sharma
Posted 22-Feb-13 0:12am
Comments
   
Please don't re-post. It so happened that I answered to your second question.
—SA
HappySharma 25-Feb-13 11:59am
   
I am sorry to repeat the question sir...But I asked this question 3 days back and got no reply so I thought someone couldn't understand the long language...so I repeated the question...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web02 | 2.8.170728.5 | Last Updated 22 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100