Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wont print on win2000 but works on win XP

Status
Not open for further replies.

Qualthos

Programmer
Joined
Oct 25, 2004
Messages
2
Location
DK
Hi there

On win xp my program works fine, but if it runs on win 2000 it prints blank pages. Does anyone know why or has an idea to where my problem is????

Thx
Thomas
 
I do not see a reason of not working on Win2000.
Because there are no errors, I will try to:
- see if there are some special printer setting on that machine
- see GDI+ library and .NET framework installation on that machine by inspecting the code in:
// OnStartPage()
public virtual Graphics OnStartPage( PrintDocument doc, PrintPageEventArgs pev)
{
// analyze the doc object
//analyze the pev, pev.Graphics object
}

or when:

//PrintPage event is raised for each page to be printed.
private void MyDocument_PrintPage(object sender, PrintPageEventArgs pev)
{

// analyze pev, pev.Graphics objects
}
-obislavu-
 
The weird part is if I print a number like 3 with font size of 360 it works but if a print the same number and only change the size to 14 it prints blank pages.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top