Hi ,
DataSet is not working in Snap Report API similar to Snap Control in Windows.
How can we bind DataSet or multiple DataTables in Snap Report API ? Attached the sample project.
Please suggest.
Thanks,
Shrirang
Hi ,
DataSet is not working in Snap Report API similar to Snap Control in Windows.
How can we bind DataSet or multiple DataTables in Snap Report API ? Attached the sample project.
Please suggest.
Thanks,
Shrirang
Hi,
I researched the template document you provided and found that all the Snap Lists in this document have the SnapList.DataSourceName property set to an empty string.
When you create a template document and drag a field from the Data Explorer, SnapControl inserts a SnapList instance in accordance with the selected DataSource in the Data Explorer. Each field dragged from the selected DataSource is inserted inside a corresponding SnapList instance.
So, each snap field is mapped to the corresponding field in the data source by the field name and SnapList's data source name.
Since the SnapLists in your template don't have a data source name, it is impossible to obtain the corresponding data field and retrieve data in your scenario.
To overcome the issue, it is necessary to redesign the template document. Create a document data source for each DataTable in the Dataset. Add SnapLists with the required snap fields and save the template.
To export this report to PDF, assign the data sources with the same names to the SnapDocumentServer component.
I recommend you check our Snap Demo - Multiple Data Sources demo to get started.
Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.