on 01-30-2012 7:44 PM
I make Crystal report file in visual web part in SharePoint 2010 and I got this exception "an unhandled win32 exception occurred in w3wp.exe [6188]" when in debugger that error occurred in this code
when I set data table to CrystalReportSource
CrystalReportSource1.ReportDocument.SetDataSource(MyDataTable);
CrystalReportViewer2.ReportSource = CrystalReportSource1;
I follow this link http://social.technet.microsoft.com/Forums/en-US/sharepoint2010programming/thread/4a86e5a5-a2fc-48f3... but I got same problem
What version of Crystal Reports?
What version of .NET?
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sharepoint 2010 being 64bit you'll need to ensure that the 64bit CR runtime is installed. once that is done, does it work outside of the IDE after compiling?
Also, try adding the datatable to a dataset (specifying the tablename thatu2019s used in the report) and use SetDataSource() on the Dataset rather than the datatable.
- Ludek
Hi Ludek,
I am also getting the exception "An unhandled win32 exception occurred in w3wp.exe [8100]." while executing the Crystal Report at the line
CrystalReportViewerSage300.ReportSource = rpt.GetReportDocument();
I am using VS 2013 on Windows 7 (64 bit) with Crystal Report SAP Version 13.0
I am using a Session Wrapper class VB6.0 dll to execute the report.
My Code block is as below:-
var reportPath = Server.MapPath("~").Replace("Projects\\Sage.CA.SBS.ERP.Sage300.Web", "") + "Reports" + @"\" + "apacct1z.rpt";
Session session;
// Create, initialize and open a session.
session = new Session();
session.InitEx(null, "", "XY", "XY1000", "62A");
session.Open("ADMIN", "ADMIN", "SAMINC", DateTime.Today, 0);
ACCPAC.Advantage.Report rpt = session.ReportSelect(reportPath, "AP7102", "AP7102");
rpt.SetParam("FROMCODE", "");
rpt.SetParam("TOCODE", "ZZZZZZ");
rpt.SetParam("FUNCCURN", "USD");
rpt.SetParam("MULTCURN?", "N");
CrystalReportViewerSage300.ReportSource = rpt.GetReportDocument();
CrystalReportViewerSage300.DataBind();
Please help...
Thanks in Advance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
75 | |
9 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.