Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / February 2006

Tip: Looking for answers? Try searching our database.

Dynamically add crystal report to application

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ghigbee@ameritech.net - 06 Feb 2006 16:04 GMT
Hi all and thanks in advance for any input.

I'm designing an application that will make heavy use of crystal
reports. I'm trying to make the application look at a specific
directory for a list of reports and make them available to the user.
Does anyone know if you can create reports as a separate project in
VS.NET 2003 and then allow the application to load them when chosen by
the user? I'm trying to avoid the need to recompile the application
every time a user wants a new report. If I cannot do that with the
version of crystal reports that shipped with VS.NET, do you know if it
can be done with the full version of crystal reports?

Thanks,
Gary
ghigbee@ameritech.net - 06 Feb 2006 20:34 GMT
Nevermind, I got it to work by creating a wrapper class for each report
that inherits from the  report itself. It may not be the most elegant
way to do it but it works. In case anyone needs the info here are the
steps I followed:

1. Create  an empty class and add a crystal report to it.
2. Set the class to inherit from the class that is created for the
crystal report.
3. Load the assembly
4.Create an instance of the assembly and set that as the report source
for the crystal report viewer.

Thanks,
Gary

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.