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!

Sample code to read from CE9 APS

Status
Not open for further replies.

troark

Programmer
Aug 27, 2001
2
US
Does anyone know where I can find some sample code to read the current list of reports from the CE9 APS? I'd like to get the list of current reports and, possible, get the list of parameters required for each report.

Any ideas?

Thanks
 
Hi, Read the doc sections in the COM SDK help file about the Query Language.
It would be something like:
Code:
//Create a query that selects all the reports, but doesn't select the instances.
	Query = "Select SI_NAME, SI_ID, SI_DESCRIPTION, SI_UPDATE_TS From CI_INFOOBJECTS Where " +
	"SI_PROGID='CrystalEnterprise.Report' And SI_INSTANCE=0 AND SI_PARENT_FOLDER=" + ParentID +
	"ORDER BY SI_DESCRIPTION";

For the Prompts, after determining the Report ID:
Code:
("Select SI_PROCESSINFO.SI_PROMPTS From CI_INFOOBJECTS Where SI_ID = " + reportID;

hth,
[profile]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top