Page 1 of 2
Issues related to using a Databand on two pages
Posted: Thu Feb 13, 2014 10:44 am
by Kh.Hassen
Hello,
I'm working on a report where i'm using a databand on two pages, but i have a few issues related to that :
- First issue, in the databand i've many columns anchored to the left and some of these columns sometimes are hidden based on conditions, the problem's that in certain times, one page is quite enough to show the columns that should appear which makes the second page unnecessary, i can't figure out how to hide that page in my exported PDF file. (see attachment 1)
- Second issue, when i have a column on two pages, the moment i export my PDF file i get only the first part of the column.(see attachment 2)
i'll be waiting your answer, would you accept my sincere thanks for your time and consideration.
Re: Issues related to using a Databand on two pages
Posted: Thu Feb 13, 2014 1:18 pm
by Alex K.
Hello,
Please try to use the following option:
Code: Select all
StiOptions.Export.Pdf.DivideSegmentPages = false;
Thank you.
Re: Issues related to using a Databand on two pages
Posted: Mon Feb 17, 2014 10:58 am
by Kh.Hassen
Hello,
First of all, thanks for the reply, i've tried the option (StiOptions.Export.Pdf.DivideSegmentPages = false;) but that didn't solve the problem, as concern the first problem, i've fixed it, but i still can't resolve the second issue, please have a look on the attachments.
the first attachment shows my report in preview mode of the designer, while the second one shows the PDF file exported.
Re: Issues related to using a Databand on two pages
Posted: Tue Feb 18, 2014 7:02 am
by Alex K.
Hello,
We couldn't reproduce this bug.
Please check the last prerelease build.
Thank you.
Re: Issues related to using a Databand on two pages
Posted: Tue Feb 18, 2014 10:30 am
by Kh.Hassen
Hello,
Thanks for the replay, i've tried the latest version of Stimultsoft Reports .Net (2013.3.1800) but the bug persists, i've doubts about the way i'm exporting the file , please can you have a look on my code and tell me if there's something wrong :
Code: Select all
StiReport report = new StiReport();
report.Load(this.reportFile);
report.ReportName = reportCode;
List<string> assemblies = new List<string>(report.ReferencedAssemblies);
System.Reflection.Assembly[] currentAssemblies = AppDomain.CurrentDomain.GetAssemblies();
foreach (System.Reflection.Assembly assembly in currentAssemblies)
{
if (assembly.GetName().Name.StartsWith("EOL."))
{
assemblies.Add(assembly.GetName().Name + ".Dll");
}
}
report.ReferencedAssemblies = assemblies.Distinct<string>().ToArray();
if (this.data != null)
{
if (this.data is ArrayList)
{
foreach (object datum in (ArrayList)this.data)
{
report.RegData(datum.GetType().Name, datum);
}
}
else
{
report.RegData(data.GetType().Name, this.data);
}
}
report.Dictionary.Synchronize();
DialogResult dialogResult = this.report.Design();
this.report.Render(false);
this.report.ExportDocument(StiExportFormat.Pdf, destinationPath);
Re: Issues related to using a Databand on two pages
Posted: Tue Feb 18, 2014 10:45 am
by Alex K.
Hello,
Can you please send us a test data for your report.
Thank you.
Re: Issues related to using a Databand on two pages
Posted: Tue Feb 18, 2014 11:19 am
by Kh.Hassen
Hello,
Thanks for the reply, i've sent you the test data file and the mrt file.
Re: Issues related to using a Databand on two pages
Posted: Wed Feb 19, 2014 6:46 am
by Alex K.
Hello,
You send us a rendered report. Can you please send us a test data for your report template.
Thank you.
Re: Issues related to using a Databand on two pages
Posted: Wed Feb 19, 2014 4:21 pm
by Kh.Hassen
Hello,
Thanks for the reply. As requested, please find enclosed both the data and the report files for test.
Best regards.
Re: Issues related to using a Databand on two pages
Posted: Thu Feb 20, 2014 9:04 am
by Alex K.
Hello,
We couldn't reproduce this bug.
Please check the last prerelease build.
Thank you.