Click here to Skip to main content
12,254,932 members (59,939 online)
Rate this:
Please Sign up or sign in to vote.
See more: C C# C#4.0
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
Posted 22-Feb-13 0:12am
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.160426.1 | Last Updated 22 Feb 2013
Copyright © CodeProject, 1999-2016
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