Quantcast
Channel: SCN : Popular Discussions - SAP Crystal Reports, version for Eclipse
Viewing all articles
Browse latest Browse all 893

How do I read the properties of an .rpt file

$
0
0

Post Author: darwinfelix

 

CA Forum: JAVA

 

com.crystaldecisions.sdk.occa.report.document.SummaryInfo

1) We are running Crystal Enterprise XI

2) I have the SDK(s) that's shipped with the installation CD

3) I can delelete and publish reports using the API with no problem

4) My worksatation is on WinXP and XI is on Windows Server 2003

 

On my workstation, I have a .rpt file.

If I [Right-click -> Properties -> Summary tab] that .rpt file from

Windows Explorer, I can see who the Author was, the Last modified

date/time, Comments field, Revision number, Application name, etc.

I noticed in the API that I can modify this info using the

com.crystaldecisions.sdk.occa.report.document.SummaryInfo

java object.  Meaning, the API will allow me to obtain these

properties once I have a reference to the

com.crystaldecisions.sdk.occa.report.document.ReportDocument

java object ( by calling rptDoc.getSummaryInfo() ).

 

However, I do not know how to obtain a reference to this (ReportDocument) object.

1) I do not want to publish this .rpt file to the XI server

2) This .rpt has never been published to the XI serever

3) I prefer not to connect to the XI server

4) The .rpt file is on my Workstation (local hard-drive)

5) The SDK(s) are on my Workstation (local hard-drive)

6) I do not have any servers/services running on my Workstation

7) I want to use Java and the XI SDK(s)

8) I don't want to run my code on the XI server

 

Meaning, at the end of the day, my code will look something

like this...

...ReportDocument rptDoc = ...

SummaryInfo summInfo = rptDoc.getSummaryInfo();

String author = summInfo.getAuthor();String comments = summInfo.getComments();...

 

Can someone please point to some documentation, samples, guides, etc.

that I can read through.

 

thanks,

-darwin

 


Viewing all articles
Browse latest Browse all 893

Trending Articles