PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Printing to PDF
Printing to PDF
Iniciado por guest, 22,abr. 2009 01:32 - 5 respuestas
Publicado el 22,abril 2009 - 01:32
Does anyone know if it is possible to print a report (Or anything) to a PDF, have the PDF window open and display the Rpt, WITHOUT the whole "Downloading a file" thing happening?
Thanks -
J
Publicado el 22,abril 2009 - 13:08
Speaking of Windev:
PROCEDURE gOpenReport(sReportName, nPreviewType)
// Procedure which allows an HTML or RTF file to be opened
// ENTER : sReportName : Name of report to open
// ENTER: nPreviewTyp : Report print mode
sExtension is string = ""
nResOpening is int = 0

// Define the file extension
SWITCH nPreviewType
CASE iHTMLCSS : sExtension = ".HTM"
CASE iHTMLWithoutCSS : sExtension = ".HTM"
CASE iRTF : sExtension = ".RTF"
CASE iPDF : sExtension = ".PDF"
OTHER CASE : RETURN
END
// Open file
IF NOT ShellExecute(CompleteDir(fCurrentDir()) + sReportName + sExtension) THEN
Error("File ' " + CompleteDir(fCurrentDir()) + sReportName + sExtension + "' cannot be open.")
END
Publicado el 22,abril 2009 - 13:14
sorry, here is how to use the procedure
.....
IF repn = 14 THEN // Bankzahlungen
iPrintReport(Bankzahlung)
END

IF repn = 15 THEN // Barzahlungen
iPrintReport(Bar_Zahlungen)
END
IF repn = 16 THEN // Lohnkonto
iPrintReport(Lohnkonto_1)
END
END

gOpenReport(doktit, nPreview) // rtf , pdf etc ansehen
Publicado el 30,abril 2009 - 10:40
Take a look at www.bullzip.com of www.biopdf.com.
Bullzip is a free pdf-printer, biopdf is the commercial version, both with COM/ActiveX interface.... so everything is customizable.
Works very well for creating high-quality PDF directly from windev. Needs a bit of programming, but it's fairly easy to do. (Quality is a lot better than the native windev pdf's)
Regards!
Publicado el 22,julio 2009 - 11:59
Not bad. Recently I have found this PDF Writer (http://www.ronyasoft.com/products/pdf-printer/) in the net. It supports Windows Vista.
Miembro registrado
71 mensajes
Publicado el 25,marzo 2018 - 12:54
Hello JD,
please do you think you would easily find how you implemented Bullzip COM object printing to PDF? I am not able to create COM object, as far as I know I need Class GUID and Interface GUID. I can only find Class GUID in Bullzip help. It look like that in .NET they do not need interface GUID.

Thank you

Petr