Programming the .Net Crystal Report Viewer

Posted by peps_megan on 22-Mar-2012 19:05

Has anybody used Article 13225 - How to add a .NET Crystal Reports Viewer into a form

I've managed to get the ASSEMBLIES part working and the ReportViewer.cls is now syntax checking.

However the last part about creating the FORM and adding the code they described is not working for me.

I've attached the assemblies.xml and the ReportViewer.cls (which seems to be OK) and the ReportViewer.p (which I am having trouble with).

What do I need to do to the ReportViewer to get it working?

[View:~/cfs-file.ashx/__key/communityserver-discussions-components-files/27/6837.ReportViewer.p.zip:550:0]

[View:~/cfs-file.ashx/__key/communityserver-discussions-components-files/27/ReportViewer.cls.zip:550:0]

[View:~/cfs-file.ashx/__key/communityserver-discussions-components-files/27/assemblies.xml:550:0]

All Replies

Posted by jquerijero on 26-Mar-2012 14:21

I assume you are trying to show a form with the usercontrol docked into it.

Change the last line of the .p to;

FormObjectRef:Controls:Add(crystalReportViewer1).

FormObjectRef:Show(). /* OR WAIT-FOR FormObjectRef:ShowDialog(). */

This thread is closed