Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: 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
Sergey Alexandrovich Kryukov at 25-Feb-13 2:01am
Please don't re-post. It so happened that I answered to your second question.
HappySharma at 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
0 Sergey Alexandrovich Kryukov 580
1 ashok rathod 159
2 CPallini 140
3 CHill60 130
4 BillWoodruff 125
0 Sergey Alexandrovich Kryukov 9,543
1 OriginalGriff 6,984
2 CPallini 5,820
3 George Jonsson 4,017
4 Gihan Liyanage 3,266

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