Page 1 of 2

Print Header Band On All But Page 1

Posted: Thu Sep 15, 2011 11:40 am
by MikeC
I have a long report that resets the page number after a footer band runs. The report also has a header band that needs to run at the top of each page that is NOT page 1. Setting the "Print On" property to "Except First Page" only works on the first page of the entire report, but it doesn't work when the page number resets to 1 (the header band prints on all of the page number 1's except for the first).

How do I prevent the header band from printing on subsequent page 1's in the report?

Print Header Band On All But Page 1

Posted: Fri Sep 16, 2011 3:02 am
by HighAley
Hello.
MikeC wrote:I have a long report that resets the page number after a footer band runs. The report also has a header band that needs to run at the top of each page that is NOT page 1. Setting the "Print On" property to "Except First Page" only works on the first page of the entire report, but it doesn't work when the page number resets to 1 (the header band prints on all of the page number 1's except for the first).

How do I prevent the header band from printing on subsequent page 1's in the report?
Please, set the 'Number of Pass' property of the report to 'Double Pass'.

Thank you.

Print Header Band On All But Page 1

Posted: Fri Sep 16, 2011 8:53 am
by MikeC
Aleksey wrote:Hello.
MikeC wrote:I have a long report that resets the page number after a footer band runs. The report also has a header band that needs to run at the top of each page that is NOT page 1. Setting the "Print On" property to "Except First Page" only works on the first page of the entire report, but it doesn't work when the page number resets to 1 (the header band prints on all of the page number 1's except for the first).

How do I prevent the header band from printing on subsequent page 1's in the report?
Please, set the 'Number of Pass' property of the report to 'Double Pass'.

Thank you.
And that didn't do anything-the report still prints the header on all the page 1's.

Print Header Band On All But Page 1

Posted: Mon Sep 19, 2011 2:00 am
by Ivan
Hello,

Can you please send us a sample report template with database, which reproduces the issue?

Thank you.

Re: Print Header Band On All But Page 1

Posted: Thu Jul 16, 2015 7:09 am
by roomy
Hello,

I am facing the same issue when try to export reports in pdf. All headers are missing on page 2 to n. I have set the number of pass to double on template. One more thing is that I need to combine this report with other report.

Code: Select all

          JoinReports.NumberOfPass = StiNumberOfPass.DoublePass;
          JoinReports.Compile();
          JoinReports.Render();
          JoinReports.CompiledReport.DataStore.Clear();

          settings = new Stimulsoft.Report.Export.StiPdfExportSettings();
          settings.ImageQuality = 1F;
          settings.ImageResolution = 100;
          settings.ImageFormat = Stimulsoft.Report.Export.StiImageFormat.Color;
          StiOptions.Export.Html.UseImageResolution = true;

          JoinReports.ExportDocument(Stimulsoft.Report.StiExportFormat.Pdf, l_strPdfPath, settings);
Thankyou

Re: Print Header Band On All But Page 1

Posted: Thu Jul 16, 2015 9:36 am
by HighAley
Hello.

Could you describe your issue more detailed?
Please, send us a sample project that reproduces the issue.

Thank you.

Re: Print Header Band On All But Page 1

Posted: Tue Aug 04, 2015 11:40 am
by roomy
report.xml
(24.18 KiB) Downloaded 466 times
report.mrt
(117.78 KiB) Downloaded 389 times
Please find the template report and xml. I have face this issue with c# code. Report headers are missing when I join more the one sti report objects together using c# code. I have use double pass property in this report and other report execute with single pass. The issue occur when attache report are added at the end.

Re: Print Header Band On All But Page 1

Posted: Wed Aug 05, 2015 4:59 am
by Jan
Hello,

Can you show your code where your merge reports?

Thank you.

Re: Print Header Band On All But Page 1

Posted: Wed Aug 05, 2015 7:17 am
by roomy
Please find the code.

Code: Select all

JoinReports.SubReports.Add(CreateMrtReport(sTempFileName, XMLFILEPATH));

          JoinReports.NumberOfPass = StiNumberOfPass.DoublePass;
          JoinReports.Compile();
          JoinReports.Render();
          JoinReports.CompiledReport.DataStore.Clear();

          settings = new Stimulsoft.Report.Export.StiPdfExportSettings();
          settings.ImageQuality = 1F;
          settings.ImageResolution = 100;
          settings.ImageFormat = Stimulsoft.Report.Export.StiImageFormat.Color;
          StiOptions.Export.Html.UseImageResolution = true;

          JoinReports.ExportDocument(Stimulsoft.Report.StiExportFormat.Pdf, l_strPdfPath, settings);

///Function to create sti report.
 private StiReport CreateMrtReport(string sTempMrtName, string XMLFILEPATH, string _GlossaryHighlight = null)
    {
      DataSet dataSet = null;
      StiReport report = null;
      try
      {
        dataSet = new DataSet();
        dataSet.ReadXml(l_strDataFilePath);


        report = new StiReport();
        report.Load(sTempMrtName);

        report.Dictionary.Databases.Clear();
        report.RegData("New Connection", "new", dataSet);

        report.Dictionary.Synchronize();
        return report;
      }
      catch (Exception ex)
      {
        throw;
      }
      finally
      {
        dataSet = null;
        report.Dispose();
        report = null;
      }
    }

Re: Print Header Band On All But Page 1

Posted: Wed Aug 05, 2015 1:25 pm
by HighAley
Hello.

Sorry, but we still couldn't reproduce your issue.
What Headers are missing on pages?
Do you need to show headers from one report on pages of other reports? Then it's impossible.
Could you describe your issue more detailed? Or better please send us a sample project that reproduces the issue.

Thank you.