Skip to Content
0
Former Member
Apr 26, 2010 at 05:21 PM

Exporting to html columns do not align up

27 Views

I am working with a report using crystal report 2008. Exporting to html using c#, columns do not align up correctly.

Does any body have a solution for this issue?

Thanks,

Here is the C# code:

HTMLFormatOptions htmlOpts = ExportOptions.CreateHTMLFormatOptions();

DiskFileDestinationOptions diskOpts = ExportOptions.CreateDiskFileDestinationOptions();

ExportOptions exportOpts = new ExportOptions();

htmlOpts.HTMLBaseFolderName = htmlFolder;

htmlOpts.HTMLFileName = file;

htmlOpts.HTMLEnableSeparatedPages = seperatePages;

htmlOpts.HTMLHasPageNavigator = pageNavigator;

exportOpts.ExportFormatOptions = htmlOpts;

diskOpts.DiskFileName = file;

exportOpts.ExportDestinationOptions = diskOpts;

exportOpts.ExportDestinationType = ExportDestinationType.DiskFile;

exportOpts.ExportFormatType = ExportFormatType.HTML32;

cryRpt.Export(exportOpts);