troubleshooting Question

Print server problem

Avatar of MTecho
MTecho asked on
Visual Basic.NET
7 Comments1 Solution309 ViewsLast Modified:
A new printer setup causes an "Object reference not set to an instance of an object" error.

The print server is a Fuji-Xerox Fiery SP4000 PS v1.0. Previous to using this print server, my application worked fine.

My application sends documents to the printer, alternating between two trays (different paper media). When printing the documents, the user prints test page from each tray. The PrinterSettings from each printer dialog are then used for the main documents being printed.

The error message above occurs when the second document is printed, when the docLabel.Print() statement is executed. docLabel is the PrintDocument.
The error cannot be trapped in the docLabel_PrintPage routine, so I am guessing that the problem occurs in the line:
Private Sub docLabel_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles docLabel.PrintPage

Would either of the variables "sender" or "e" be Nothing?
What can be done?

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros