Greetings,
I am generating report data sources in C# and passing that data to a report and then using the PrintToPrinter method to print the report.
I am having the following issue: when the application prints the report, instead of the report being printed, the printer starts printing pages with lines of random characters and will keep printing indefinitely until you manually cancel the print job.
I am not able to reproduce this 100% of the time. I can pass the same exact data source to the same report and it will sometimes print correctly and sometimes print random characters.
My application is running on Windows 7 64 and is written in C# .net 4 and the report version is: Runtime Version:4.0.30319.2034
The printer(s) that are printing the random characters are HP M601n. I have tried the Universal PCL 5, Universal PCL6 and the model specific drivers for this printer and the issue is still happening. I have three stations on the floor that use this application and all three have the same machine specs / printer / print drivers and this issue happens on all three.
I have tried to replicate this on my development machine which is connected to a Brother printer and after 100+ tries I was not able to reproduce the issue which leads me to believe it has something to do with the HP drivers out on the floor.
Any advice would be appreciated.
Thank you,
Max.