Click here to Skip to main content
15,039,359 members
Please Sign up or sign in to vote.
4.00/5 (1 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[^] 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.

Puneet Sharma
Please don't re-post. It so happened that I answered to your second question.
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 I repeated the question...

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

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900