Hi,
I have written an application to automatically update the reports of our clients.
Sometimes it is necessary to insert components at certain positions, and you cannot do this manually for hundreds of clients and dozens of reports each.
We use reports with 80mm width for POS printers, and also reports in A4 format.
With 80mm reports it works fine, but when you try f.ex. to add bands with a StiText inside to an A4 report, the StiText components are not positioned where they should be.
I have added an example project.
Thanks for your help!
Regards, Florian
Problem with programmatically adding components to A4-Report
Problem with programmatically adding components to A4-Report
- Attachments
-
- ReportsSignatur.zip
- (2.23 MiB) Downloaded 277 times
Re: Problem with programmatically adding components to A4-Re
I have made some tests, it only happens, when - like in my case - the page property 'Title before Header' is set to true.
Re: Problem with programmatically adding components to A4-Re
Hello,
Please to add the following code:
Thank you.
Please to add the following code:
Code: Select all
Application.DoEvents();
rpt.Load(sReport);
rpt.Info.ShowHeaders = false;
StiReportTitleBand titleband = new StiReportTitleBand();
... // your code for
rpt.Info.ShowHeaders = true;
foreach (StiPage page in rpt.Pages)
{
page.DockToContainer();
page.Correct();
}
rpt.Save(sReport);
Re: Problem with programmatically adding components to A4-Re
That's great! Thank you so much.
Best regards, Florian
Best regards, Florian
Re: Problem with programmatically adding components to A4-Re
Hello Florian
We are always glad to help you!
Let us know if you need any additional help.
Thank you.
We are always glad to help you!
Let us know if you need any additional help.
Thank you.