473,387 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

ReportDocument

Hello.
How can I get the ReportDocument from CrystalReportViever?

Thank you.
Nov 17 '05 #1
2 3241
David,

As far as I know, you could only use the ReportSource property. The problem
is that ReportSource is kind of "polymorphic" variable, and it could store a
ReportDocument reference, a String reference...
In any case, you could try to cast ReportSource into a ReportDocument using
the 'as' operator...

ReportDocument doc = crv.ReportSource as ReportDocument;
if (doc != null) {
// it worked
}

Regards - Octavio

"David Dvali" <da*********@hotmail.com> escribió en el mensaje
news:eC**************@TK2MSFTNGP14.phx.gbl...
Hello.
How can I get the ReportDocument from CrystalReportViever?

Thank you.

Nov 17 '05 #2
Hi,
Using ReportSource property

IIRC this is a object, so you will have to cast it to ReportDocument, or
even to your own derived class.
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


"David Dvali" <da*********@hotmail.com> wrote in message
news:eC**************@TK2MSFTNGP14.phx.gbl...
Hello.
How can I get the ReportDocument from CrystalReportViever?

Thank you.

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Boris F | last post by:
Problem in DotNet 2003. I have CrystalReport Class in my project. When I'm trying to create instance of ReportDocument control on my form in IDE dialog box comes up with multiple choise of...
1
by: Teresa B | last post by:
I am going through your Brian Bischof's walkthrough in Chapter 1 of his book Crystal Reports .Net Programming and have come up to a problem. When I load the ReportDocument onto the form I get no...
0
by: Kapil Shah via DotNetMonster.com | last post by:
Hello everybody, I am trying to create a web application to generate Crystal Report with Parameters. However I noticed that ReportDocument.Load is used twice when the parameter page is loaded for...
2
by: Meena | last post by:
Hi every Body, I am using Crystal Reports with vb.net interacting with front end every thing fine, I still Have a doubt of the report is refreshing really or not. Dim crReportDocument As New...
0
by: Carlos Maggiotti | last post by:
Hello. We are dealing with to pass a ReportDocument (of Crystal) trhow a WebService. We know that the ReportDocument cannot be serializate. There is way to turn it to another data type that can...
0
by: drolaw | last post by:
Hello, I am attempting to use the CrystalDecisions.CrystalReports.Engine.ReportDocument object to open a Crystal Enterprise InfoObject object as a crystal report. I have retrieved the InfoObject,...
1
by: dan_williams | last post by:
Is it possible to pass multiple discrete values to a report document so that I can export it to PDF? I've managed to perform the following code to display a Crystal Report Viewer ok, but i want...
3
by: Jason Huang | last post by:
Hi, In our .Net 2003 + CrystalReports 10, do we have an Exception Handler for ReportDocument.Load? Thanks for help. Jason
1
by: murthychvrm | last post by:
why we declare "ReportDocument doc;" in this coding?what it is doing here? using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.