Print Page | Close Window

hide crystal report viewer

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Writing Code
Forum Discription: .NET programming API, report integration
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=5009
Printed Date: 19 May 2024 at 8:20am


Topic: hide crystal report viewer
Posted By: arobin21
Subject: hide crystal report viewer
Date Posted: 15 Dec 2008 at 12:30am
Hi ,

I am using VS.NET 2005. I can load CR to my CR Viewer. But the problem occurs when i click on CR Viewer's  navigation/print button than i can't see any report on my page. same code is running fine when i put the code in Load() method. What's wrong!!!

Please help.

Thanks.



Replies:
Posted By: BrianBischof
Date Posted: 15 Dec 2008 at 11:43am
Never put your code in the Load() event. There are timing issues with loading the viewer into memory and the ViewState object. Put your code in the Init() event instead and see if that helps.
 
I cover the problems with the Load() method in my CR.NET 2005/2008 book. You can find out more about my books at http://www.amazon.com/exec/obidos/ASIN/097495361X/bischofsystem-20 - Amazon.com or reading the http://members.crystalreportsbook.com - Crystal Reports eBooks online.


-------------
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>


Posted By: arobin21
Date Posted: 17 Dec 2008 at 12:20am
Thanks a lot , it works.



Print Page | Close Window