Writing Code
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Writing Code
Message Icon Topic: hide crystal report viewer Post Reply Post New Topic
Author Message
arobin21
Newbie
Newbie
Avatar

Joined: 15 Dec 2008
Location: Bangladesh
Online Status: Offline
Posts: 2
Quote arobin21 Replybullet Topic: hide crystal report viewer
    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.
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet 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 Amazon.com or reading the 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>
IP IP Logged
arobin21
Newbie
Newbie
Avatar

Joined: 15 Dec 2008
Location: Bangladesh
Online Status: Offline
Posts: 2
Quote arobin21 Replybullet Posted: 17 Dec 2008 at 12:20am
Thanks a lot , it works.
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.