• (3 Pages)
  • +
  • 1
  • 2
  • 3

Printing in C#

#16 ampicoj  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 19-April 10

Posted 19 April 2010 - 11:44 AM

I've downloaded the .zip file (three times). When I try to open it I get a message saying "The Compressed (zipped) folder is invalid or corrupted. If I try to get at it thru another zip path it says "No files to extract" (invoked from the extract option on a folder right-click).

Any ideas??

Many thanks,
ZL --
Was This Post Helpful? 0
  • +
  • -

#17 Guest_guest*


Reputation:

Posted 29 April 2010 - 11:32 PM

HI,
I used the above code in my asp.net project. Everything works fine. But the problem is the printDialog Box pop's up in the background of the page. So the user has to use (alt+tab) to access that printDialogBox. So plz, some1 suggest me how can I pop-up the printDialog Box above my webpage...???

Thnx.
Was This Post Helpful? 0

#18 dicjl  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 21-June 10

Posted 21 June 2010 - 11:16 AM

The zip file, holding the code, appears to be corrupt.
Was This Post Helpful? 0
  • +
  • -

#19 Guest_Humayun Kabir*


Reputation:

Posted 03 August 2010 - 05:36 AM

Thanks. This is really a nice article. :nottalkingtoyou:
Was This Post Helpful? 0

#20 Guest_eclecticsol uk*


Reputation:

Posted 06 August 2010 - 10:15 AM

A useful introduction. The followups about RemoveZeros were essential reading to get rid of the second page and put the first character where it belonged!
Was This Post Helpful? 0

#21 Guest_eclecticsol uk*


Reputation:

Posted 06 August 2010 - 10:31 AM

View Postmatrix0009, on 02 March 2010 - 01:04 AM, said:

1 The type or namespace name 'PCPrint could not be found (are you issing a using directive or an assembly reference?)'

What could be the problem here?


You are (were?) missing a "using PC;" statement.

The PCPrint class is in the namespace PC - it begins with the line

namespace PC {

.
Was This Post Helpful? 0

#22 Guest_Taurmin*


Reputation:

Posted 02 September 2010 - 03:31 AM

A very helpfull article. However is there a way to adapt it to force page break on the \f escape character?
Was This Post Helpful? 0

#23 Guest_afik*


Reputation:

Posted 18 October 2010 - 07:22 AM

life saver :)
Was This Post Helpful? 0

#24 Guest_kyuora*


Reputation:

Posted 06 February 2011 - 07:27 PM

View Postafik, on 18 October 2010 - 07:22 AM, said:

life saver :)

Was This Post Helpful? 0

#25 Guest_kyuora*


Reputation:

Posted 06 February 2011 - 07:32 PM

View Postkyuora, on 06 February 2011 - 07:27 PM, said:

View Postafik, on 18 October 2010 - 07:22 AM, said:

life saver :)


Please help me..how to print data such as student information from data grid????

im really no idea to make that, i want to print the info. example: i find student by the combobox and appear at datagrid. then i want to print that info.. but i dont have any idea about to print that info..please help..really need your help!!
Was This Post Helpful? 0

#26 dapland  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 11-March 11

Posted 11 March 2011 - 11:11 AM

I'm using PCPrint but when I print the text, the printer prints a blank page and then the final text.. How can I solve this problem? The print text looks like this in code:

string lines = " De Lodge - Keerbergen\n\r\n\r\n\r\n\r -- Restaurant -- \n\r\n\r\n\r\n\r" + msg;


Thanks in advance,
Dapland
Was This Post Helpful? 0
  • +
  • -

#27 rkysoo  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 18-July 11

Posted 18 July 2011 - 01:50 AM

Dear All,

I am new to C#, i was wondering is there any way that PCPrint class can actually print the coordinate to the printer page?

As i have an application that require output to computer form, could anyone advise how can i do so?
Was This Post Helpful? 0
  • +
  • -

#28 Aero Dynamik  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 17-August 11

Posted 17 August 2011 - 07:43 AM

Great, this was exactly what I needed! However, I found a bug. In case the orientation is landscape, the values of the printHeight and printWidth variables must be swapped before the margins are subtracted.

Happy Coding!

Regards Aero Dynamik
Was This Post Helpful? 0
  • +
  • -

#29 poch  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 04-September 11

Posted 04 September 2011 - 02:18 AM

I found a bug in accordance to the codes given by PsychoCoder (author) and duncan. The codes still prints second page if you are trying to print using a long bond paper.
Was This Post Helpful? 0
  • +
  • -

#30 martiya_z  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 04-July 13

Posted 04 July 2013 - 07:06 AM

View PostPsychoCoder, on 25 February 2008 - 06:26 PM, said:

Welcome to this tutorial on Printing in C#. It used to be that printing documents in Microsoft l....



tnX man! your useful tutorial finished my project! ;-)
Was This Post Helpful? 0
  • +
  • -

  • (3 Pages)
  • +
  • 1
  • 2
  • 3