Page 1 of 2
Regarding printtodotmatrix
Posted: Thu Jul 07, 2011 9:10 pm
by Naveen Aggarwal
Hi
There has been considerable improvement in printing to dotmatrix but I faced three problems while using printtodotmatrix.
1. Windows print dialog is opened even if i use report.printtodotmatrix(false)
2. Paper is not advanced to tear line after printing is complete. Paper has to be advanced manually to tear it.
3. position of few components changes while printing i.e. the layout is different from what is shown in the designer.
I am using Epson FX-890 printer on Windows 7 ultimate edition with stimulsoft 2011.2.1006 of 18.5.2011, .net framework 4.0.30319.
Regards !!
Regarding printtodotmatrix
Posted: Fri Jul 08, 2011 3:53 am
by Ivan
Hello,
naveenagg wrote:1. Windows print dialog is opened even if i use report.printtodotmatrix(false)
The StiReport class do not have the printtodotmatrix() method, only PrintToDotMatrixPrinter() method (but does not have method overloads that take a value boolean).
In your case, please try to use the following property:
Code: Select all
yourReport.PrinterSettings.ShowDialog = false;
naveenagg wrote:2. Paper is not advanced to tear line after printing is complete. Paper has to be advanced manually to tear it.
Please increase the paper height in the page setup, or insert the FormFeed symbol in the end of the report.
naveenagg wrote:3. position of few components changes while printing i.e. the layout is different from what is shown in the designer.
Dot-matrix printer is used to print only the text and characters of pseudographics. Therefore it is impossible to maintain an accurate layout of the report.
Please use the DotMatrix viewer to preview the report before printing it on dot matrix printer.
Thank you.
Regarding printtodotmatrix
Posted: Fri Jul 08, 2011 11:59 pm
by Naveen Aggarwal
Thanks a lot for your reply sir !!
I was referring to printotdotmatrixprinter only. Sorry for the typographical error.
Kindly let me know how can i include FormFeed symbol at the end of the report as suggest by you ?
I haven't done it earlier !!
Regards !!
Regarding printtodotmatrix
Posted: Sat Jul 09, 2011 12:00 am
by Naveen Aggarwal
Thanks a lot for your reply sir !!
I was referring to printotdotmatrixprinter only. Sorry for the typographical error.
Kindly let me know how can i include FormFeed symbol at the end of the report as suggest by you ?
I haven't done it earlier !!
Regards !!
Regarding printtodotmatrix
Posted: Mon Jul 11, 2011 3:55 am
by Andrew
Hello,
By default, if the PutFeedPageCode property in the DotMatrix viewer is set to true (checked), then the FormFeed control code is inserted after each page.
If you want to insert this code manually, please use the following expression in the textbox:
{(char)12}
Thank you.
Regarding printtodotmatrix
Posted: Mon Jul 11, 2011 8:48 pm
by Naveen Aggarwal
Thanks a lot for your reply !!
I am not using dotmatrixviewer actually. The output is sent directly to the printer using PrintToDotMatrixPrinter. Is putFeedPageCode true by default when using printToDotMatrixPrinter ?
One more thing i observed was that a printe dialog box is shown even if Report.PrinterSettings.ShowDialog=False .
Also when i print the report on a dotmatrix printer (Epson FX-890) using PrintToDotMatrixPrinter the page doesn't advance for cutting but when i press the button on printer console it issues a form feed i.e. the paper advances by one page size. This behavious is not there when using report.print.
Kindly help !!
My client would be more than happy if i m able to give him high speed printing on a dot matrix printer.
Regards !!
Regarding printtodotmatrix
Posted: Tue Jul 12, 2011 8:14 am
by Ivan
Hello,
naveenagg wrote:I am not using dotmatrixviewer actually. The output is sent directly to the printer using PrintToDotMatrixPrinter. Is putFeedPageCode true by default when using printToDotMatrixPrinter ?
By default this flag is set to true.
Please show us the code you used to print report.
naveenagg wrote:One more thing i observed was that a printe dialog box is shown even if Report.PrinterSettings.ShowDialog=False .
Please try to use the following code:
Code: Select all
mainreport.PrinterSettings.ShowDialog = false;
mainreport.CompiledReport.PrinterSettings.ShowDialog = false;
Thank you.
Regarding printtodotmatrix
Posted: Tue Jul 12, 2011 8:53 am
by Naveen Aggarwal
Thanks a lot for your mail sir !!
I am using the following code for printing
Report.PrinterSettings.ShowDialog = False
Report.PrintToDotMatrixPrinter(Module1.DefaultPrinterName, System.Text.Encoding.Default, 1, 1)
Thanks !!
Regarding printtodotmatrix
Posted: Tue Jul 12, 2011 8:55 am
by Naveen Aggarwal
Thanks a lot for your mail sir !!
I am using the following code for printing
Report.PrinterSettings.ShowDialog = False
Report.PrintToDotMatrixPrinter(Module1.DefaultPrinterName, System.Text.Encoding.Default, 1, 1)
Thanks !!
Regarding printtodotmatrix
Posted: Tue Jul 12, 2011 8:56 am
by Naveen Aggarwal
Thanks a lot for your mail sir !!
I am using the following code for printing
Report.PrinterSettings.ShowDialog = False
Report.PrintToDotMatrixPrinter(Module1.DefaultPrinterName, System.Text.Encoding.Default, 1, 1)
Thanks !!