Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: HTMLHasPageNavigator := false has no effect. Post Reply Post New Topic
Author Message
RBIBBY
Newbie
Newbie


Joined: 01 Feb 2009
Online Status: Offline
Posts: 2
Quote RBIBBY Replybullet Topic: HTMLHasPageNavigator := false has no effect.
    Posted: 01 Feb 2009 at 8:34am
Hello,
 
I am using Crystal Reports XI /Delphi 2006.
 
I am trying to export a report in HTML40.
 
I set HTMLEnableSeparatedPages and the HTMLHasPageNavigator to false but I still get a navigator in my exported HTML code.
 
 
When I export directly from Crystal Reports I get what I expect.
 
Is the some issue here I don't understand.  Here is the code:
 
      crHTMLFormatOptions := HTMLFormatOptions.Create;
      crDiskFileDestinationOptions := DiskFileDestinationOptions.Create ;
      crExportOptions := ExportOptions.Create ;
      // Set the HTML format options.
      crHTMLFormatOptions.HTMLBaseFolderName := OutputDirectory ;
      crHTMLFormatOptions.HTMLFileName := 'HTML40.html';
      crHTMLFormatOptions.HTMLEnableSeparatedPages := false ;
      crHTMLFormatOptions.HTMLHasPageNavigator := false ;
      crHTMLFormatOptions.FirstPageNumber := 1 ;
      crHTMLFormatOptions.LastPageNumber := 1 ;
      crHTMLFormatOptions.UsePageRange := false ;
      crExportOptions.ExportFormatOptions := crHTMLFormatOptions;
      // With HTML the destination options need to be set also.
      crDiskFileDestinationOptions.DiskFileName := 'HTML40.html';
      crExportOptions.ExportDestinationOptions := crDiskFileDestinationOptions;
      crExportOptions.ExportDestinationType :=  ExportDestinationType.DiskFile;
      crExportOptions.ExportFormatType := ExportFormatType.HTML40;
    // Now export the report....
    crReport.Export(crExportOptions);
 
/thanks
IP IP Logged
RBIBBY
Newbie
Newbie


Joined: 01 Feb 2009
Online Status: Offline
Posts: 2
Quote RBIBBY Replybullet Posted: 01 Feb 2009 at 2:08pm
Have some more information... when I export from Crystal Report to HTML format I get a simple HTML file... but when I export programically it appears that the html code is for the Crystal Reports Viewer with javascript for drill down and pages etc.
 
I just want a simple HTML representation of my report..
 
/richard
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.015 seconds.