Close the Second Preview Form
-
- Posts: 31
- Joined: Thu Feb 17, 2011 1:54 pm
- Location: Cuiaba, Brazil
Close the Second Preview Form
When i create a dot-matrix report, first it opens a Preview window, then i have the option to open a second Preview window when i click the dot-matrix button on the toolstrip menu.
However, when i use the StiReport.CompiledReport.Printed event to automatically close the preview window after the report was printed, this second window is not closed.
Is there anything i can do to fix that?
However, when i use the StiReport.CompiledReport.Printed event to automatically close the preview window after the report was printed, this second window is not closed.
Is there anything i can do to fix that?
Re: Close the Second Preview Form
Hello.
Sorry for delay with answer. We need some additional time to chack the issue.
We will be able to answer faster if you send as a sample project that reproduces the issue.
Thank you.
Sorry for delay with answer. We need some additional time to chack the issue.
We will be able to answer faster if you send as a sample project that reproduces the issue.
Thank you.
-
- Posts: 31
- Joined: Thu Feb 17, 2011 1:54 pm
- Location: Cuiaba, Brazil
Re: Close the Second Preview Form
It's not difficult to reproduce really, you dont need a special report.
Open the print preview window, then click the Dot-Matrix Button at the top, it will open a new window.
If the button doesn't show up, open the designer and set the Preview Mode report property to "Standard and Dot-Matrix".
Open the print preview window, then click the Dot-Matrix Button at the top, it will open a new window.
If the button doesn't show up, open the designer and set the Preview Mode report property to "Standard and Dot-Matrix".
- Attachments
-
- preview_mode.png (18.85 KiB) Viewed 3821 times
Re: Close the Second Preview Form
Hello.
Thank you for the additional information.
We have reproduced the issue.
We can make this windows as Dialog. Is it right for you?
Thank you.
Thank you for the additional information.
We have reproduced the issue.
We can make this windows as Dialog. Is it right for you?
Thank you.
-
- Posts: 31
- Joined: Thu Feb 17, 2011 1:54 pm
- Location: Cuiaba, Brazil
Re: Close the Second Preview Form
My problem is that i set the window to auto-close after the report is printed (code bellow), but the dot-matrix preview window remains open, we need it closed when the preview window is closed.
Thanks.
and the Printing event to close the preview form after the report was printed:
Thanks.
Code: Select all
rptImpressao.RegData(this.DstImpressao);
rptImpressao.Load(StmcIcon);
rptImpressao.Compile();
rptImpressao.CompiledReport.Printed += new EventHandler(report_Printing);
rptImpressao.Render();
rptView.Report = rptImpressao;
rptView.ShowDialog();
Code: Select all
private void report_Printing(object sender, EventArgs e)
{
rptView.Close();
}
Re: Close the Second Preview Form
Hello.
We will make an improvement and let you know about results.
Thank you.
We will make an improvement and let you know about results.
Thank you.
Re: Close the Second Preview Form
Hello,
We made some improvements in that direction.
Please check the next release when it will be available on the next week and let us know about the result.
Thank you.
We made some improvements in that direction.
Please check the next release when it will be available on the next week and let us know about the result.
Thank you.