Regarding printtodotmatrix

Stimulsoft Reports.NET discussion
Naveen Aggarwal
Posts: 70
Joined: Wed Feb 24, 2010 11:08 am
Location: India

Regarding printtodotmatrix

Post 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 !!
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Regarding printtodotmatrix

Post 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.
Naveen Aggarwal
Posts: 70
Joined: Wed Feb 24, 2010 11:08 am
Location: India

Regarding printtodotmatrix

Post 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 !!
Naveen Aggarwal
Posts: 70
Joined: Wed Feb 24, 2010 11:08 am
Location: India

Regarding printtodotmatrix

Post 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 !!
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Regarding printtodotmatrix

Post 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.
Naveen Aggarwal
Posts: 70
Joined: Wed Feb 24, 2010 11:08 am
Location: India

Regarding printtodotmatrix

Post 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 !!
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Regarding printtodotmatrix

Post 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.
Naveen Aggarwal
Posts: 70
Joined: Wed Feb 24, 2010 11:08 am
Location: India

Regarding printtodotmatrix

Post 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 !!
Naveen Aggarwal
Posts: 70
Joined: Wed Feb 24, 2010 11:08 am
Location: India

Regarding printtodotmatrix

Post 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 !!
Naveen Aggarwal
Posts: 70
Joined: Wed Feb 24, 2010 11:08 am
Location: India

Regarding printtodotmatrix

Post 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 !!
Post Reply