Business reporting with per-page print control

Does anyone know of a reporting tool that allows you to monitor a print job page by page? In particular, I need to be able to insert escape sequences into the printer.

The closest I've found is ActiveReports . It provides an interface like this:

SystemPrinter sp = new SystemPrinter(); 
sp.StartJob("jobname"); 
foreach(Page pg in rpt.Pages) { 
    sp.Escape("escape_characters"); 
    sp.StartPage(); 
    pg.Draw(sp.Graphics, rect); //render page to printer
    sp.EndPage(); 
} 
sp.EndJob(); 

      

The problem is that their escape function has a known bug and is not sending escape characters to the printer.

An interface like this is perfect but unnecessary. The minimum requirement I have to deal with is to send different commands to the printer on each page. I also work in .NET. We appreciate any suggestions. Thank.

0


source to share


2 answers


Sorry, the best one I've worked with is ActiveReports. If there is a known bug, be sure to report it to them. I found they have decent support.



+1


source


I'm sure you will find that ActiveReports is the only reporter to provide this kind of extensible control over print jobs, especially providing escape support. Of course, if I'm wrong, someone will correct me. What's the error with the Escape you're working on? It's also worth noting that Windows itself started to impose some restrictions with escaping since the introduction of Windows 9x, and Microsoft has discouraged the use of screens since the launch of Windows 9x. There is only one source from Microsoft that mentions this, KB125692 . Anyway, please tell me more about what kind of problems you faced with the escape and I will try to either fix the error or find a workaround.



-Scott

+1


source







All Articles