Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Making use of Seagate's code 2

Status
Not open for further replies.

bnath001

Programmer
Aug 18, 2000
100
US
Hello,
I am trying to call Crystal reports from ASP Pages. I have downloaded the rptserver.asp and couple of important files inorder to accomplish this task from Seagate's web site.

They have code like the following. They (seagate) have used session variables extensively and where can I get help to use the methods on session variables. Like in the following lines of code they have used a method called "Areas" on a session variable called "oRpt". But in Activer server pages Session object, there is not such method. Any ideas how to make use of the code given by Seagate more effectively rather than simply using their code.

'Code to suppress the Page Header section

Set Area = Session("oRpt").Areas.Item(2)
Set Areaoptions = Area.Options
Areaoptions.visible = False

Thank you
vyas001
 
thankx fowler.
But how did you get the help inorder to the functions?


Thank you
vyas
 
I do not need the help...

We already know that the report object 'session("oRpt")' has an area collection in which the individual elements have themsleves an options object. It is this object that has the visible property.

To make the code 'flat' as I have is an OOP concept, nothing more

Steven Fowler
info@fowlerconsulting.com
 
Fowler,

>>We already know that the report object 'session("oRpt")' >>has an area collection in which the individual elements>> >>have themsleves an options object. It is this object >>that has the visible property.

I understand what you are meaning. but how do you know that 'session("oRpt") object has an area collection. I don't know where to look for different collections or properties or methods for 'session("oRpt") ...

could you please let me know.

thank you
vyas001

 
Try this, works fine in my app. I'm using Sections instead of Areas, in my case it's more usefull.

set session("Sections") = session("oRpt").Sections
set Section = session("Sections").Item(1)
Section.Suppress = true
 
>>I understand what you are meaning. but how do you know >>that 'session("oRpt") object has an area collection. I >>don't know where to look for different collections or >>properties or methods for 'session("oRpt") ...

could you please let me know how did you realise that there is something called "Sections" for session("oRpt") object.
is there any help file to go and explore the methods and properties?

thank you
vyas001
 
Can anyone answer my question please.

thank you
 
The object model is on the developer.hlp file. That is how you know what methods, collections, etc. are off the report object. Steven Fowler, Principal
steve.fowler@fowlerconsulting.com
- Development, Training, and Consulting
wpe1.gif
 
Open up VB, go to Project...References... and check "Crystal Report 8 ActiveX Designer Runtime Library", which is CRAXDTR.DLL you use inyou ASP app.
Type something like this:
Dim TestReport As New CRAXDRT.Report
TestReport.Sections.Item.Suppress = true

You'll see also other properties and methods of a Report Object.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top