Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Regarding Crystal Baker's Dozen
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
Regarding Crystal Baker's Dozen
Miscellaneous
Thread ID:
00974799
Message ID:
00974799
Views:
58
Kevin,
I have a couple of specific questions regarding some of your code.

This is the code snippet I have questions regarding:
case "PREVIEW":
...snip
// set the viewer and report source, then set the zoom level  (I default to 78%)	
ccCrystalViewer oViewer = new ccCrystalViewer();
this.crViewer.ReportSource = oReport;
this.crViewer.Zoom(78);
oViewer.Show();
oViewer.Text = cTitle;
this.frmCrystalViewer = oViewer;
break;
...snip
This is part of the code from ccCrystalManager.ShowReport().

1. Why did you choose to use oViewer.Show() instead of oViewer.ShowDialog()? (I know it allows you to keep the preview open and go back to your application, but have you thought about that the user could potential open several previews and it could get kind of cluttery. I guess I just want to pick your brain a little).

2. What is the purpose of the line this.frmCrystalViewer = oViewer;?

3. I noticed that you set ShowCloseButton = false, but do you know how I can add code to the press of that button and close the preview form? (I can't find the event for that button) (this question is not directly related to the code above)

Einar
Semper ubi sub ubi.
Next
Reply
Map
View

Click here to load this message in the networking platform