in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

C1WebReport Retrieve Data From C1WebGrid

Last post 05-15-2008 10:46 PM by nguyenlam03. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 05-06-2008 10:40 PM

    C1WebReport Retrieve Data From C1WebGrid

    I've a C1WebGrid to display data from my database . i wanna use  C1WebReport retrieve data from C1WebGrid and Export to Excel or PDF.

    Thanks in Advance 

    Filed under:
  • 05-08-2008 6:20 AM In reply to

    Re: C1WebReport Retrieve Data From C1WebGrid

    You will have to create the report using the Report designer from the Datasource, with which you have bound the Grid control and then load that report to the C1WebReport control.
    To export the report to Excel or pdf, you can try the following code:
     
    me.C1WebReport.report.renderToFile("C:\report.pdf",PDF)
    me.C1WebReport.report.renderToFile("C:\report.xls",excel)
     
    Regards,
    Patrick
    <nguyenlam03> wrote in message news:204607@10.0.1.98...

    I've a C1WebGrid to display data from my database . i wanna use  C1WebReport retrieve data from C1WebGrid and Export to Excel or PDF.

    Thanks in Advance 



    http://helpcentral.componentone.com/cs/forums/p/75171/204607.aspx#204607

  • 05-15-2008 10:46 PM In reply to

    Re: C1WebReport Retrieve Data From C1WebGrid

    in dotnetnuke :
    Code to bind data for C1WebGrid :

    Dim objmdl_DMHS As New DM_HSController
    Dim colmdl_DMHSs As List(Of DM_HSInfo)
    colmdl_DMHSs = objmdl_DMHS.Getmdl_DM_HSs(PortalId, ModuleId)
    Grid.DataSource = colmdl_DMHSs
    Grid.DataBind()

    /* Grid is a C1WebGrid
    i wanna use this datasource to bind for the C1WebReport.

    Thanks in advance !!!!
     

     

    Filed under:
Page 1 of 1 (3 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.