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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PrintToPrinter gives index error/CR 11/vb.net 2003

Status
Not open for further replies.

stroyer74

IS-IT--Management
Jan 22, 2003
70
US
I am printing out a Crystal Report through a VB app using the PrintToPrinter function. When setting it up originally, I was printing to an HP laser and to labels on standard 8.5" x 11" paper size. This part works with no problems.

I am in the process of changing the report to a new size label and a new printer - a Zebra Z4M Plus using 4" x 6" labels. Once the report has been configured to the new printer and label size, I get the following error when trying to print from the VB app:

"Index was outside the bounds of the array."


The report does print correctly from within Crystal Reports 11 - only gives me the error when printing from within the VB app.

From what I have gathered from online searching, the problem must be with a PrintOptions parameter that I am missing - but I am at a loss at this point.

Has anyone else ran into this problem before?

Thanks in advance,
Sheldon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top