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
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