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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Interpreting API responses / Accessing Parameters

Status
Not open for further replies.

blinder

Programmer
Oct 16, 2002
13
NZ
Hi Experts...

Below is some of my code that I am using to check how to use CRPE32 API calls. I have inserted comments in the code which include my questions. -

I hope you can help me...

vars
crJob : Integer;
success : Boolean;
params : Integer;
idx : Integer;
begin
/* The language I am using is from a New Zealand Development Environment
called JADE
*/
call peOpenEngine;

crJob := call peOpenPrintJob('d:\peter2.rpt');
if crJob <> 0 then
success := call peOutputToWindow(crJob, 'Hope it Works',0,0,700,900,0,0);

if success then
write 'peOutputToWindow worked...';

params := call peGetNParameterFields(crJob);
write 'Number of Parameters = '& params.String;
/* the above statement returns a value of 5636100 !!!
My report has four parameters - Whats going on here - Can you help??*/

/* Once I find out how many parameters I have ...
What api calls to I need to find out there names and
data types (String, Integer etc)*/


call peStartPrintJob(crJob, true);
else
write 'peOutputToWindow FAILED...';
endif;
if call peClosePrintJob(crJob) then
write 'All closed up '& crJob.String;
else
write 'Not so closed up';
endif;
endif;
epilog
call peCloseEngine;
end;

Hope the code is understandable...

Blinder
 
I should also point out that I am using 8.5
 
Hi Experts !!!! - YES Experts...

I started this thread after reading some of the various threads and getting the impression that there was a good chance of getting some answers.

I'm not a Delphi or VB programmer (and don't want to be - my JADE environment is more productive - enough on this), but I need to understand more about how the CRPE32 API function calls work.

I can get the basic display report working - but need more...

Please please read my thread and offer some clues - The Crystal Documentation isn't giving me enough clues.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top