Mike

Mike

  • NA
  • 14
  • 0

Problem printing with GDI+

Sep 29 2007 12:08 PM
I'm having trouble printing from my app in c#.

First of all, I am connected to an HP Laser Jet 6 on a network.

I am trying to print out a doc generated from one of my programs. The print preview dialog takes a while (long while) to come up and show the doc.

However, when the doc appears, it is there as it is drawn in the program using GDI+.

However, when the doc finally gets sent to the printer, the page is blank.

SO, I typed a few letters on a blank notepad doc, sent it to the printer and it worked just fine, and didn't take forever either.

I don't know why it takes so long to show the preview. Before I was connected, the preview came up instantly.

So I don't know what my program is doing wrong.

I did another test. I had the words "Header" and "Footer", with several rows sandwiched in between.

The words "header" and "footer" were printed. They were in Arial font size 12. The rows were printed in Arial size 7. So I'm changing everything to 12 to see what happens.

Then I tried to put everything in Arial Font size 12, and nothing happened. The words Header and Footer still printed, and the space between them remained the same, even though there should be 12 lines of text in between.

The network printer is the only printer installed.


Answers (4)