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