Unable to print the report in second page

Hi,
I've got a problem in the report. Here In a report, I'm able to print the report's data in the first page only. I'm unable to print it in the second page,third page etc.
To rectify the problem, I've selected all the fields and set their property "Print Object on" to All pages. Still the problem exists.
Thanks in advance.
Regards,

What exactly do you mean by 'unable' ? Do you only get a 1 page report, OR do you get multiple pages with the 2nd, 3rd blank OR do the 2nd, 3rd have text but not data OR something else?
"Print Object On" should be "First Page" - it sounds wrong but it's talking about logical pages (which may be multiple physical pages).

Similar Messages

  • Unable to print the report after SP2 (CR 2008 / VS 2008)?

    I'm developing an ASP.NET application using VS 2008 (Framework 3.5). I have installed CR 2008 with SP (0, 1, and 2).
    I created an invoice report and I printed it as test for the report and it works okay. I needed to change the page size of the report to a user defined size and reset all of the margins to zero.
    After I did that I was unable to print the report again and every time I tried to print the report nothing gets printed.
    I checked my environment to find the cause of this problem but I found nothing except that I'm using CR runtime for SP1 and I'm currently using SP2. So I did remove CR runtime for SP1 and install CR runtime for SP2.
    The problem didn't go away and I faced one more problem.
    Usually I'm using a dataset as a data source for my reports. After installing the CR runtime for SP2 I couldn't see any date column in my report data source (Dataset). All other types of columns appear except date fields! Why I have no Idea?
    After I do some more testing regarding my issue I found out the following
    1.     When I add a new report to my web application and I don't change the page setting the report work fine.
    2.     When I change the page setup settings (Page Margins, horizontal width and vertical height) the report show up okay but never gets printed.
    Why I don't know?
    Addition to that the report dataset (Data Source) showing in the field explorer never shows any date type field?
    All of the above issues happened with me after installing SP2.
    OS: WindowsXP Pro SP3
    CR 2008 (SP 0, 1, 2)
    VS 2008 SP1
    Please I need your help.
    Edited by: Sami Aljafer on Oct 12, 2009 8:35 PM
    Edited by: Sami Aljafer on Oct 12, 2009 8:38 PM

    Hi, Sami;
    Are you printing from the Crystal preview window, or in code?
    If you are printing from the preview window, try printing via code, such as:
    An example of print to printer:
    crReportDocument = New ReportDocument
    crReportDocument.Load("h:\labels2.rpt")
    ''Use error handling in case an error occurs
    Try
    ''Set the printer name to print the report to. By default the sample
    ''report does not have a defult printer specified. This will tell the
    ''engine to use the specified printer to print the report. Print out
    ''a test page (from Printer properties) to get the correct value.
    crReportDocument.PrintOptions.PrinterName = "
    dwcb12003\ZDesigner ZM400 200 dpi (ZPL)"
    ''Start the printing process. Provide details of the print job
    ''using the arguments.
    crReportDocument.PrintToPrinter(1, True, 1, 1)
    Please post your question about the dataset as a new post.
    Regards,
    Jonathan
    Edited by: Jonathan Parminter on Oct 12, 2009 2:28 PM

  • Unable to print the reports from Transaction iViews

    Hi Experts,
    We have configured SAP Transctions iViews in portal. These transactions are basically of reports, when we want to print the report from EP. When clicking on the Print from the Transaction iView we are getting the error "File does not begin with '%PDF".
    iView launches in HTML Gui.
    When we launch the same report from ECC directly login with GUI we are able to take the print.
    Is there any settings need to be maintain in "FRONTEND_PRINT" service.
    Thanks
    Murthy

    Hi,
    Check the note Note 1042424 - Printing in WebGUI: Error "File does not begin with '%PDF-'"
    This should help resolve the problem.
    Cheers-
    Pramod

  • The second time when i print the report the page appear cut in the right

    hi,
    I created a report in Report Builder 6i. When i print the report appear well, but when i try to print the same report second time in the right of the page appears cut.
    Why? What should I do to appear the entire page at the second print?
    Thx.

    Flattening and merging are very similar. The main difference is merging keeps the transparent areas, whereas flattening removes all transparent areas by giving it a white background. A good example of flattening is a jpg image.
    Since you have closed the file by closing photoshop, that means that the history is now gone, no way of undoing.
    So that leaves you with two choices.
    You can either recreate the whole document.
    Or you can make selections of areas you are keeping and moving them one at a time to new layers. Keep each object on a separate layer. Then redo the area behind those objects.

  • Print the report on page has width larger than height and not landscape mode

    Hi,
    I'm trying to print report on page (Width: 18cm, Height: 13cm) which the width larger than the height.
    The problem is windows keeps changing the page oreintation to landscape and when I change it back to portrait its changing the width to 13cm and height to 18cm.
    I'm using dot matrix printer to print the report, if i put Landscape , printer is printing the text in horizontal.
    Already i have tried to setup the custom for on printer, and used custom page size but it is changing to landscape.
    I need to print the report with out preview, direct print top printer, NO PDF....
    Thank you .....

    Hi Anil,
    After testing the issue in my environment, I can reproduce it. When I set (Width: 18cm, Height: 13cm) as the Report Page size, it would automatically convert Orientation from Portrait to Landscape. Because the Orientation displayed is dependent on the page
    width and page height of the report.
    But in my scenario, the Orientation option just change the Width and Height sizes, it couldn’t affect the text rotation. I guess this issue can be caused by the printer and printer driver, please try to update them. Reference:
    http://stackoverflow.com/questions/15244336/printing-in-landscape-or-portrait-automatically-rotates-text-ssrs?lq=1
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How to Print the Report Column headers on each page of any report

    Can someone offer assistance on how I can go about achieving the ability to show and print the Report Column headers on each page of any report using the Print Attributes of APEX 3.0? These reports will be printed using Excel and Word.
    I read a thread with a similar request but the answer seems vague for my level of understanding.
    I am connected to a print server and using BI Publisher.
    Thanks,
    Ric

    Hello Ric,
    >> These reports will be printed using Excel and Word.
    I'm not sure I understand what you are trying to do. You are using a very powerful tool – BI Publisher – why do you need Excel or Word for printing? Is there a special need only Excel or Word can provide?
    One of the major advantages of using BI Publisher is that it's taking care of all these tedious tasks like reasonable page breaking, headers and footers, and also table headers.
    Regards,
    Arie.

  • My report is printing half of the page when I print the report Hp psc 1315

    My report is printing half of the page when I print the report in this printer
    Hp psc 1315 all in-one and when the operating system is windows xp , but when
    I run the same report in windows me , and the same printer it is running well
    And my report version is :
    Report Builder 6.0.8.23.0
    ORACLE Server Release 8.0.6.0.0
    Oracle Procedure Builder 6.0.8.20.0
    waiting for your valuable answer .
    Best regards
    Jamil alshaibani

    i would like to now if there is any additional software required for the windows xp and oracle report to solve this problem
    please help
    betst regards
    jamil alshaibani

  • How do I print the total number of pages in report, like Page 1 of 5?

    Hi
    How do I print the total number of pages in report, like Page 1 of 5?
    thanks,
    kiran.M

    Hi,
    Check for the below code:
    *Declare a variable
    DATA L_PAGE_COUNT(5) TYPE C.
    *Copy this code to the end of program
    *Page count will be printed on each page here
    WRITE SY-PAGNO TO L_PAGE_COUNT LEFT-JUSTIFIED.
    DO SY-PAGNO TIMES.
    READ LINE 1 OF PAGE SY-INDEX.
    REPLACE '-----' WITH L_PAGE_COUNT INTO SY-LISEL.
    MODIFY CURRENT LINE.
    ENDDO.
    TOP-OF-PAGE.
    WRITE: /(70) 'Heading' CENTERED, 70 SY-PAGNO,'of ', '-----'.
    You will find your solution in below thread with code:
    Total Pages in Basic List
    Rgds,
    Shakuntala

  • Unable to print the SQR report to printer

    Hi-
    Trying to print the PAY003 SQR directly to the printer, SQR report runs sucessfully but not able to print to the server, Its working correctly in 9.0 Production instance with Windows 2003 32bit OS, but doesn't work with HR92 Applicaiton on Windows 2008 x64 bit servers.
    Error Message : "The SQR report was generated, but the program was unable to route the report to the printer. Verify the validity of the printer path specified."
    Installed the printer on the new 2008 Windows server with 64 bit drivers and still it doesn't work. Any help or suggestions what to check ?
    Regards,

    If you are using the Verizon Web-mail client here on My Verizon, then you need to click the "Print" button while viewing a message.
    Click here for an illustration showing the button you need to click. Look towards the top right of the image.
    When you click that button, a new window will be displayed and the Print dialog will open. Simply hit the new Print button to print the full email.

  • Print the report title

    Hello All,
    I have a report page with some search item.When I print the page the title does not appear on the output page.
    How I can print the report and its title on the output page.
    any quick help please

    Hi Mohammad
    I allow users to download reports using the Interactive Reports Region.
    If you use that method then you can insert a title at the top of the report by populating the Report Region > Print Attributes (TAB) > Page Header
    Note: This is available when using APEX coupled with Oracle Business Intelligence Publisher. It does not work with "CSV" output.
    Kind regards
    Simon Gadd

  • Print the report by code

    Hi to all,
                 I'm using Asp.Net 2.0-C#, Crystal Report 11 SP1.
    I bind some records to the report, i want to print the report when a checkbox is clicked instead of CR Print button, how to do this, experts please post any code?

    Hello,
    I posted hyperlinks to the [Developer Library|https://www.sdn.sap.com/irj/sdn/businessobjects-sdklibrary], and the [Crystal Reports .NET SDK Guide|http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm] for CR XI R2.
    From the main Developer Library page scroll down the page to the [XI|http://devlibrary.businessobjects.com/BusinessObjectsXI/en/devlib.htm] (v11.0) and the [XI R2|http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm] (v11.5) versions of the Crystal Reports .NET SDK Guide.
    Click on one of the above links to choose the version of the Dev Library you'd like to explore.  After it loads you'll see Content and Search buttons in the left hand pane.  Click on Search and search for PrintToPrinter.  In the results list you'll see the PrintToPrinter method.  Click on this and you'll see the information you're looking for.
    Please start using the above links to search for your answers - the information is there.
    Sincerely,
    Dan Kelleher

  • Open doc URL: unable to open the report in same window

    Hi
    I'm trying to open a report using open doc url with "swindow=same" but still it opens in a separate window. This happens only when I use JAVA viewer. it works fine in ActiveX and HTML but I want this in JAVA viewer as i'm including this page in my JAVA application and it should open the report in the same window. I tried using "<a>URL</a>" and also target="_self" by HTML interpretation for that object but still the same problem. I'm unable to open the report in the same window by using JAVA viewer for Crystal Reports in info view. Please help me!!!
    Envirorment Details: Crystal Reports 2008 SP3, BOE XI R3 SP3
    regards
    Raghavendra.G

    I have tested that myself and It seems that HTML interpretation does not work with the Java viewer.
    I have also tried using a hyperlink containing javascript
    eg.
    javascript:window.location.href='http://www.sap.com'
    but the java viewer seems always to launch a new window before processing the command.
    I would recommend to open a case by SAP support ( httP://service.sap.com/support )
    Regards,
    Stratos

  • Hyperion IR 9.3.1 - Issue in printing the report after exporting it to pdf

    Hi All,
    I am facing a problem in printing the report after exporting it to pdf format using Hyperion Interactive Reporting 9.3.1. I have set page size of report section to 11X17 inch landscape. Now I am exporting this report section to pdf. Report gets exported to pdf with size 11X17 inch landsacpe. But when I am trying to print this pdf it is shrinking the documnet size to A4 size paper and printing it rather it should print it on 11X17 inch paper size. Please suggest if there is fix available for this issue.
    Thanks
    Ujjawal

    "File &gt; Print Setup &gt; Paper &gt; Size" on PDF.
    I think this issue is only to do with the printer and not IR.
    I think the question now is "Can your printer print 11X17 pages or not".

  • Error While Printing the Report

    Post Author: saqib
    CA Forum: .NET
    HI All,I have joined this forum recently. I found this forum so helpful. I have one query which is: I am using crystal report 10 with Dot Net 1.1, I have created one web report which consists of 19 pages. Once i press the print button on the report after previewing it shows me the error reporting screen of windows. I have checked in event viewer it gives me the following error detail:The description for Event ID ( 1000 ) in Source ( Microsoft Internet Explorer ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. The following information is part of the event: iexplore.exe, 6.0.2800.1106, printcontrol.dll, 10.0.0.533, 0003bb45. Can any one helps me as i am totally stuck in that. Thanks in advance.  

    Try the following if your printer is a network printer
    1. Add Printers - select Local Printer
    2. In the Add Printer wizard, select "create a new port" option and select "TCP/IP" as type
    3. Write the IP address of the network printer in the "Add standard TCP/IP Printer Port wizard". The port name becomes IP_<ip addr>. Click Next.
    4. Select the printer and printer type in "Add Printer" wizard.
    5. Select a driver and Write a printer name. This completes the setup. Use this printer name to print from Oracle reports.
    Hope this helps..
    Yogesh
    I am getting this error message while printing the report on Network Printer.
    "REP-1849: Failed while printing"
    Reports Server is not installed on my machine.
    On shared printer, it has no problems.
    Platform is Win2000. Report Builder 6.0.8.11.3
    Plz help !
    Thanks in advance !

  • How to print the report directly without previewing (report viewer) using c# windows application

    Hi,
    Currently, we are using crystal report to all of our reporting applications, but since I/users have encountered some issues about CR's speed to load only a simple report, maybe it is now time for us to adopt a new reporting environment in which I think SSRS
    can fill this problem.
    To start with, I have here a sample code, that uses the crystal report to print the report directly without previewing:
    csCashInvoiceCal csCashCal; --Crystal report name .rpt
    dsCsReceipt dsCs; --created dataset
    DataTable u;
    DataRow s;
    private System.Drawing.Printing.PrintDocument printDocument1;
    private System.Windows.Forms.PrintDialog printDialog1;
    ParameterValues paramValue;
    ParameterDiscreteValue discreteValue;
    ParameterFieldDefinition fieldDefinition;
    private void btnPrint_Click(object sender, EventArgs e)
    this.Cursor = Cursors.WaitCursor;
    loadReceipt2();
    print2();
    csCashCal.Close();
    this.Cursor = Cursors.Default;
    private void loadReceipt2()
    dsCs = new dsCsReceipt(); --created dataset
    u = dsCs.Tables.Add("DtCsReceipt");
    u.Columns.Add("Qty", Type.GetType("System.String"));
    u.Columns.Add("UOM", Type.GetType("System.String"));
    u.Columns.Add("Description", Type.GetType("System.String"));
    u.Columns.Add("UnitPrice", Type.GetType("System.String"));
    u.Columns.Add("Discount", Type.GetType("System.String"));
    u.Columns.Add("Amount", Type.GetType("System.String"));
    try
    for (int i = 0; i < dgvDesc.Rows.Count - 1; i++)
    s = u.NewRow(); double.TryParse(dgvDesc.Rows[i].Cells[Discount2.Name].Value.ToString(), out discount);
    s["Qty"] = double.Parse(dgvDesc.Rows[i].Cells[Qty.Name].Value.ToString());
    s["UOM"] = dgvDesc.Rows[i].Cells[Uom2.Name].Value.ToString();
    s["Description"] = invcode + dgvDesc.Rows[i].Cells[Description.Name].Value.ToString();
    s["UnitPrice"] = dgvDesc.Rows[i].Cells[UnitPrice.Name].Value.ToString();
    if (discount != 0)
    s["Discount"] = "(" + string.Format("{0:0.##}", discount) + "%)";
    else
    s["Discount"] = "";
    s["Amount"] = dgvDesc.Rows[i].Cells[Amount2.Name].Value.ToString();
    u.Rows.Add(s);
    catch (Exception) { }
    csCashCal = new csCashInvoiceCal();
    csCashCal.SetDataSource(dsCs.Tables[1]);
    //csCashCal.Refresh();
    loadParameter2();
    private void loadParameter2()
    ParameterFieldDefinitions paramFieldDefinitions;
    paramValue = new ParameterValues();
    discreteValue = new ParameterDiscreteValue();
    paramFieldDefinitions = csCashCal.DataDefinition.ParameterFields;
    discreteValue.Value = date;
    fieldDefinition = paramFieldDefinitions["Date"];
    commonParam();
    discreteValue.Value = txtcsno.Text;
    fieldDefinition = paramFieldDefinitions["InvoiceNo"];
    commonParam();
    discreteValue.Value = txtNameTo.Text;
    fieldDefinition = paramFieldDefinitions["CustomerName"];
    commonParam();
    discreteValue.Value = txtAdd.Text;
    fieldDefinition = paramFieldDefinitions["CustomerAddress"];
    commonParam();
    ------other parameters----
    private void commonParam()
    paramValue.Clear();
    paramValue.Add(discreteValue);
    fieldDefinition.ApplyCurrentValues(paramValue);
    private void print2()
    using (printDocument1 = new System.Drawing.Printing.PrintDocument())
    using (this.printDialog1 = new PrintDialog())
    //this.printDialog1.UseEXDialog = true;
    this.printDialog1.Document = this.printDocument1;
    DialogResult dr = this.printDialog1.ShowDialog();
    if (dr == DialogResult.OK)
    int nCopy = this.printDocument1.PrinterSettings.Copies;
    int sPage = this.printDocument1.PrinterSettings.FromPage;
    int ePage = this.printDocument1.PrinterSettings.ToPage;
    string PrinterName = this.printDocument1.PrinterSettings.PrinterName;
    try
    csCashCal.PrintOptions.PrinterName = PrinterName;
    csCashCal.PrintToPrinter(nCopy, false, sPage, ePage);
    printcount++;
    //saveCountPrint();
    catch (Exception err)
    MessageBox.Show(err.ToString());
    This is only a simple sales receipt application that uses dgv and textboxes to push its data to dataset to the crystal report, a simple one but there are instances that it is very slow.
    But I'm having trouble implementing this using SSRS, since I'm only new to this one, wherein I created the report using report wizard, with two button options inside the form for print preview or direct print selection. Actually, it is very easy to implement
    with print preview because it uses reportviewer. My problem is that how can I print the report directly without using a reportviewer?
    So here is my code so far which I don't know what's next:
    private void button2_Click(object sender, EventArgs e)
    this.Cursor = Cursors.WaitCursor;
    loadReceipt3();
    //print3();
    this.Cursor = Cursors.Default;
    ReportParameter[] parameter = new ReportParameter[11];
    private void loadParameter3()
    parameter[0] = new ReportParameter("InvoiceNo", txtcsno.Text);
    parameter[1] = new ReportParameter("Date", date);
    parameter[2] = new ReportParameter("CustomerTin", txtTin.Text);
    parameter[3] = new ReportParameter("CustomerName", txtNameTo.Text);
    parameter[4] = new ReportParameter("CustomerAddress", txtAdd.Text);
    parameter[5] = new ReportParameter("Agent", agent);
    parameter[6] = new ReportParameter("Discount", "Discount: ");
    parameter[7] = new ReportParameter("TotalDiscount", lblDiscount.Text + "%");
    parameter[8] = new ReportParameter("TotalSales", rdtotal);
    parameter[9] = new ReportParameter("Tax", rdtax);
    parameter[10] = new ReportParameter("TotalAmount", rdnet);
    private void loadReceipt3()
    DataSet dsrs = new DataSet();
    DataTable dtrs = new DataTable();
    DataRow drs;
    dtrs.Columns.Add("Qty", Type.GetType("System.String"));
    dtrs.Columns.Add("UOM", Type.GetType("System.String"));
    dtrs.Columns.Add("Description", Type.GetType("System.String"));
    dtrs.Columns.Add("UnitPrice", Type.GetType("System.String"));
    dtrs.Columns.Add("Discount", Type.GetType("System.String"));
    dtrs.Columns.Add("Amount", Type.GetType("System.String"));
    try
    for (int i = 0; i < dgvDesc.Rows.Count - 1; i++)
    drs = dtrs.NewRow();
    drs["Qty"] = double.Parse(dgvDesc.Rows[i].Cells[Qty.Name].Value.ToString());
    drs["UOM"] = dgvDesc.Rows[i].Cells[Uom2.Name].Value.ToString();
    drs["Description"] = invcode + dgvDesc.Rows[i].Cells[Description.Name].Value.ToString();
    drs["UnitPrice"] = dgvDesc.Rows[i].Cells[UnitPrice.Name].Value.ToString();
    if (discount != 0)
    drs["Discount"] = "(" + string.Format("{0:0.##}", discount) + "%)";
    else
    drs["Discount"] = "";
    drs["Amount"] = dgvDesc.Rows[i].Cells[Amount2.Name].Value.ToString();
    dtrs.Rows.Add(s);
    catch (Exception) { }
    int addtlRow = 7;
    if (addtlRow > (count - 1))
    addtlRow = addtlRow - (count - 1);
    for (int i = 0; i < addtlRow; i++)
    dtrs.Rows.Add();
    loadParameter3();
    LocalReport localreport = new LocalReport();
    localreport.SetParameters(parameter);
    localreport.DataSources.Clear();
    localreport.DataSources.Add(new ReportDataSource("dsSalesReceiptSsrs", dtrs));
    localreport.Refresh();
    //what's next....
    So what's next after local..refresh()? Actually, I have googled a lot but I didn't found the exact solution that I'm looking for which confuses me a lot.
    Anyway I'm using VS 2010 with sql server 2012 express.
    You're help will be greatly appreciated.
    Thank you,
    Hardz

    After some further studies with ReportViewer controls and with the use of this tutorial @ : http://msdn.microsoft.com/en-us/library/ms252091.aspx, which helps me a lot on how to print a report without using a report viewer, I found out what is missing
    with my code above and helps solve my question.
    Here's the continuation of the code above:
    private void loadReceipt3()
    loadParameter3();
    LocalReport localreport = new LocalReport();
    localreport.ReportPath = @"..\..\SsrsCashReceipt.rdlc";
    localreport.SetParameters(parameter);
    localreport.DataSources.Clear();
    localreport.DataSources.Add(new ReportDataSource("dsSalesReceiptSsrs", dtrs));
    Export(localreport);
    print4();
    private IList<Stream> m_streams;
    private int m_currentPageIndex;
    private void Export(LocalReport report)
    string deviceInfo =
    @"<DeviceInfo>
    <OutputFormat>EMF</OutputFormat>
    <PageWidth>8.5in</PageWidth>
    <PageHeight>11in</PageHeight>
    <MarginTop>0.25in</MarginTop>
    <MarginLeft>0.25in</MarginLeft>
    <MarginRight>0.25in</MarginRight>
    <MarginBottom>0.25in</MarginBottom>
    </DeviceInfo>";
    Warning[] warnings;
    m_streams = new List<Stream>();
    report.Render("Image", deviceInfo, CreateStream,
    out warnings);
    foreach (Stream stream in m_streams)
    stream.Position = 0;
    private void print4()
    if (m_streams == null || m_streams.Count == 0)
    throw new Exception("Error: no stream to print.");
    PrintDocument printDoc = new PrintDocument();
    PrintDialog printDlg = new PrintDialog();
    printDlg.Document = printDoc;
    DialogResult dr = printDlg.ShowDialog();
    if (dr == DialogResult.OK)
    if (!printDoc.PrinterSettings.IsValid)
    throw new Exception("Error: cannot find the default printer.");
    else
    printDoc.PrintPage += new PrintPageEventHandler(PrintPage);
    m_currentPageIndex = 0;
    printDoc.Print();
    Dispose();
    public void Dispose()
    if (m_streams != null)
    foreach (Stream stream in m_streams)
    stream.Close();
    m_streams = null;
    private Stream CreateStream(string name, string fileNameExtension, Encoding encoding, string mimeType, bool willSeek)
    Stream stream = new FileStream(name + "." + fileNameExtension,
    FileMode.Create);
    m_streams.Add(stream);
    return stream;
    private void PrintPage(object sender, PrintPageEventArgs ev)
    Metafile pageImage = new
    Metafile(m_streams[m_currentPageIndex]);
    // Adjust rectangular area with printer margins.
    Rectangle adjustedRect = new Rectangle(
    ev.PageBounds.Left - (int)ev.PageSettings.HardMarginX,
    ev.PageBounds.Top - (int)ev.PageSettings.HardMarginY,
    ev.PageBounds.Width,
    ev.PageBounds.Height);
    // Draw a white background for the report
    ev.Graphics.FillRectangle(Brushes.White, adjustedRect);
    // Draw the report content
    ev.Graphics.DrawImage(pageImage, adjustedRect);
    // Prepare for the next page. Make sure we haven't hit the end.
    m_currentPageIndex++;
    ev.HasMorePages = (m_currentPageIndex < m_streams.Count);
    Thank you very much for this wonderful tutorial. :)

Maybe you are looking for