when I use the preview-tab of objStiWpfDesignerControl, then call the DotMatrixPreview and then use the print button to print on a MatrixPrinter the report is printed correctly.
But when I user StiReport.PrintToDotMatrixPrinter(...) the output has many completely superfluous LF/CR in front and after the actual report. This leads to 10 or more pages that are fed through the printer after the report!!!
I have made HexDumps of the codes that are sent to the printer once printing directly and once printing via preview. I have then scanned those HexDumps (see PDF Files attached). The report is attached too (simple as can be, just "Test").
The printers are installed as "Generic" and I don't think this is a problem of the driver anyhow, since it works perfectly when printed from the preview.
This is the code I use to print the report directly.
Code: Select all
objReport.LoadFromString(sReportDefition);
objReport.Render();
objReport.PrintToDotMatrixPrinter(aPrinter, System.Text.Encoding.GetEncoding(1252), false, Stimulsoft.Report.Export.StiTxtBorderType.Simple, false, false, false, false, 100, 100, 1, objReport.RenderedPages.Count, true, "EpsonFX");
Any idea?
Cheers,
Pascal