Help please Exporting Crystal to HTML
Please help me with the code that will run a Business Objects (XI) Crystal Report and Export it to an HTML 4.0 file.
Using VB 6, have a form with the Crystal XI Viewer control on it.
Name of report is myfile.rpt.
Need to export it to HTML ver 4.0 to c:\test\my.htm
Can someone show me how to do this?
Re: Help please Exporting Crystal to HTML
Hope this helps a bit:
VB Code:
Private Sub genera_htm()
Screen.MousePointer = vbHourglass
CrystalReport1.ReportFileName = "f:\bodega\reportes\revisionhtm.rpt"
CrystalReport1.SelectionFormula = "{revision_general.referencia} ='" & FormMain.Text1.Text & "'" & " and {revision_general.factura} = '" & FormMain.Text2.Text & "'" & " and {detalle.referencia} = '" & FormMain.Text1.Text & "'" & " and {detalle.factura} = '" & FormMain.Text2.Text & "'"
CrystalReport1.Destination = crptToFile
CrystalReport1.PrintFileName = "c:\bodega\revision.htm"
CrystalReport1.PrintFileType = crptHTML32Std
CrystalReport1.PrintReport
Screen.MousePointer = vbNormal
End Sub