Click here to Skip to main content
Click here to Skip to main content
Alternative Tip/Trick

Tagged as

SSRS - Error: Subreport could not be shown

, 10 Nov 2011 CPOL
Rate this:
Please Sign up or sign in to vote.
I tried this for the second subreport, Table2, but no subreport for Table2 was displayed:METHOD SubReportEventHandler(sender AS OBJECT, e AS SubreportProcessingEventArgs) AS VOID LOCAL oDS AS ReportDataSource LOCAL table AS datatable // fill table here with the...

I tried this for the second subreport, Table2, but no subreport for Table2 was displayed:

METHOD SubReportEventHandler(sender AS OBJECT, 
       e AS SubreportProcessingEventArgs) AS VOID
    LOCAL oDS   AS ReportDataSource
    LOCAL table AS datatable
    // fill table here with the appropriate data
    oDS                 := ReportDataSource{"SFMSales",Table}
    e:DataSources:Add(oDS)
oDS                 := ReportDataSource{"SFMSales",Table}
   e:DataSources:Add(oDS)
oDS := ReportDataSource{"SFMSales",Table2}
 
   e:DataSources:Add(oDS)

Both subreports are in the same directory. How shall I code for the second subreport inside the SubReportEventHandler?

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

ben ong

Unknown
No Biography provided

Comments and Discussions

 
QuestionProblem with SSRS Authentica​tion - don't want to use Custom Authentica​tion - Please guide PinmemberMember 1069685125-Mar-14 5:27 
GeneralThank you so much for the guidance. I am now able to solve m... Pinmemberben ong10-Nov-11 0:02 
GeneralThe SubReportEventHandler is called for each subreport. Here... PinmemberWillie Moore9-Nov-11 6:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.141223.1 | Last Updated 10 Nov 2011
Article Copyright 2011 by ben ong
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid