Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   Impresión (https://www.clubdelphi.com/foros/forumdisplay.php?f=4)
-   -   QReport a HTML (https://www.clubdelphi.com/foros/showthread.php?t=65170)

emeritos 25-11-2009 17:39:40

QReport a HTML
 
Hola Dilferos,

¿ Como puedo pasar un QReport (una impresion) a HTML ?, se pasarlo a pdf con un modulo que me comentaron aqui. Para más información utilizo Delphi 7.

Si no se puede, tambien me sirve como pasar el resultado de una consulta en SQL a HTML.

Gracias.

marcoszorrilla 25-11-2009 18:27:01

Mira este ejemplo a ver si te sirve:
Código Delphi [-]
// The following code show how to explicitly call an export
// filter without going through the preview
procedure TfrmQR3Demo.btnExportClick(Sender: TObject);
begin
  btnExport.Enabled := False;
  with SaveDialog1 do
  begin
    if Execute then
    begin
      frmFormLetter.QuickRep1.ExportToFilter(TQRCommaSeparatedFilter.Create(FileName));
{
Other filters:
HTML: TQRHTMLDocumentFilter
ASCII: TQRAsciiExportFilter
CSV: TQRCommaSeparatedFilter

In Professional Version:
RTF: TQRRTFExportFilter
WMF: TQRWMFExportFilter
Excel: TQRXLSFilter
}
    end;
  end;
  btnExport.Enabled := True;
end;

Un Saludo.


La franja horaria es GMT +2. Ahora son las 06:27:48.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi