I have created an application wich is supposed to print out reservation tickets for cinema theatres.
Everything works fine and crystal reports are printing correctly , my problem is the huge amount of time that crystal report takes to print ou a USB printer. The paper format is custom (7.9x11) wich is kinda small paper. I have used non-bolded fonts to accelerate the printing process but useless.
In my code i use the Report.PrintToPrinter() method , wich i suspect is the cause of the lack of time.
i use a .net class to fill my report dynamically, the report datasoure is an arraylist of that class.
Anyidea about accelerating the printing process will be appreciated thank you.
Here's a sample from the code
Ticketarr = new Arraylist(); TicketRepMod report = new TicketRepMod(); TicketRep ticket ; // the class that will be used to fill the report
//some for code to initialize ticket object. . . . .
//printing
tiecketarr.add(ticket); report.setDataSource(TicketArr); report.printoptions.printername = printername // a printer allready defined by the user at the application properties.
report.PrintToPrinter(1,false,1,1);
PS : the printer i use is a thermal printer
Moved byHarry ZhuWednesday, December 24, 2008 9:10 AM (Moved from Visual C# General to Off-Topic Posts (Do Not Post Here))