Click here to Skip to main content
15,888,157 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all visitors,

I dropped AxCrystalActiveXReportViewer on my window form(form1).i define the startup object in(Project Property->Startup Object) to my form1.it runs well. i mean it can display report.then i changed the startup object to SubMain because i want to preview my report when i click one button in SAP. when i click on print button to display my report on form1,it display an error like that "An error occurred creating the form. See Exception.InnerException for details. The error is: ActiveX control '548c6316-751f-4b34-b8d9-a56fcee53bc8' cannot be instantiated because the current thread is not in a single-threaded apartment."

Does anybody know how to preview report by using AxCrystalActiveXReportViewer in SAP B1?

Thanks

TONY
Posted

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900