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!

Cyrstal Reports 8.5 Page Range export window

Status
Not open for further replies.

BrianEllul

Programmer
Jan 22, 2004
9
MT
Hi

I'm trying to export a Crystal report 8.5 from Delphi5. However, the Export Page range option is showing up even though the 'PromptForOptions' is false.
Also, if I had to export directly from Crystal, how can I disable that popup window and default to 'All pages'?

Regards
Brian
 
Hi

Thanks for the reply.

I've narrowed down the problem more now! It seems that the 'Export page' window only comes up when exprting to RTF (it dosn't if I export to Ascii)!

Regards
Brian
 
Looking at the documentation for the TCrpe component, PromptForOptions will suppress the first dialog that would normally be shown, but depending on the type of export, additional dialogs may also pop up. In your case, since you're exporting to a format that uses a Page-Ranged export (RTF or PDF), you need to set another property to suppress the Page Range dialog. Here's the sample in the help files:
Code:
Crpe1.ReportName := 'C:\Company.rpt';
with Crpe1.ExportOptions do
begin
  PromptForOptions := False;
  Destination := toFile;
  FileType := RichTextFormat;
  FileName := 'C:\RTFReport.rtf';
  RTF.UsePageRange := False;
  RTF.Prompt := False
end;

Crpe1.Export;
The above would suppress the intial export prompt (for Format and Destinations), then suppress the Page Ranged export prompt.

Hope that helps you out.

-dave
 
Thanks for your answer. You've understood exactly what I'm talking about!

However, these two options are not availabile!
RTF.UsePageRange := False;
RTF.Prompt := False;

I'm using Delphi5, VCL 7.5.0.51.

Regards
Brian
 
We're using the 8.5 VCL. I just downloaded the version you have, and see that it's not available. Unfortunately, I think you're stuck unless you upgrade.

-dave
 
Ok then I'll upgrade! I assume it's from the Business Objects web site... maybe you can direct me to the page.

Thanks
Brian
 
I'm thinking you might be albe to download the 8.5 VCL in order to get access to these extra properties:

I'm not entirely sure, but I believe that the higher VCL's require Delphi 6 or 7, so I don't think an upgrade of the CR product would do you any good (unless you went to CR 8.5).

-dave
 
In fact that's it. I'll write a small program 'Listener' to press the OK button for me for now ;)

Thanks for your time
Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top