none
How to Print report.rdlc with print document ...? RRS feed

  • Question

  • Hi...

    I am trying to Print ''report.rdlc'' using with print document..
    But it getting Empty page..

    What i Did.--
    1). Created One 'report.rdlc' report with dataset 
    2). And Credted Form2 to print preview

    and add Print button in form2
    in the print button code is..

     private void Form2_Load(object sender, EventArgs e)

    {
    int InvSl = Convert.ToInt32(Form1.passInvno);

    // TODO: This line of code loads data into the 'Bill_sale_dataset.Sale_items' table. You can move, or remove it, as needed.
    this.Sale_itemsTableAdapter.Fill(this.Bill_sale_dataset.Sale_items, InvSl);
    this.reportViewer1.RefreshReport();

    }

     private void printDocument1_PrintPage(object sender, PrintPageEventArgs e)
     {

     int InvSl = Convert.ToInt32(Billing_Sales.passInvno);
     this.Sale_itemsTableAdapter.Fill(this.Bill_sale_dataset.Sale_items, InvSl);
     }


      private void button1_Click(object sender, EventArgs e)
    {

     printDocument1.PrintPage += new PrintPageEventHandler(printDocument1_PrintPage);
    printDocument1. Print();

     }

    Pls. help me..

    wenkket

    • Moved by Fei Hu Thursday, December 28, 2017 6:09 AM RDLC Related
    Wednesday, December 27, 2017 9:07 AM

All replies

  • Printing Imports System.Collections.Generic Imports System.Windows.Forms Imports Microsoft.Reporting.WinForms Module modul_print_reports Private m_currentPageIndex As Integer Private m_streams As IList(Of Stream) Private printdoc As PrintDocument ''' <summary> ''' Print rdlc report with custom.http://www.traininginmarathahalli.in/hadoop-training-in-bangalore


    • Edited by giselle aga3 Wednesday, December 27, 2017 9:31 AM
    Wednesday, December 27, 2017 9:30 AM
  • Hello wenkketrangarao,

    Based on your description, I am afraid that the issue is out of support of C# General Question forum which mainly discusses C# programming language, IDE, libraries, samples and tools.

    I suggest that you can consult your issue directly on RDLC forum: https://forums.asp.net/t/1942202.aspx?RDLC+forum+ for better solution and support.

    If I have misunderstood anything, please feel free to let me know.

    Best regards,

    Neil Hu


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, December 28, 2017 6:06 AM