PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 25 → WX - Imprimir PDF, DOC com Windev, Webdev e Windev Mobile
WX - Imprimir PDF, DOC com Windev, Webdev e Windev Mobile
Débuté par BOLLER, 16 mai 2017 18:15 - Aucune réponse
Membre enregistré
3 651 messages
Popularité : +175 (223 votes)
Posté le 16 mai 2017 - 18:15
Imprimir PDF, DOC com Windev, Webdev e Windev Mobile

Windev e Webdev
https://help.windev.com/en-US/…

MyDocument is Document = "c:\temp\proposal.docx"
iPreview()
DocPrint(MyDocument)


Windev Mobile
https://help.windev.com/en-US/…
IF iPrintPDF("MyFile.PDF") THEN
Info("Print successfully performed")
END

//OU

// Print the order form
FileName = fDataDir() + [fSep()] + StringBuild("ORF_%1.PDF", OrderNumber)
iDestination(iGenericPDF, FileName)
iPrintReport(RPT_OrderForm, OrderNumber, OrderNumber)

// Check the existence of the file
IF fFileExist(FileName) = False THEN
Error("The PDF file was not generated")
RETURN
END

// Confirmation to display the PDF
IF YesNo(Yes, "Display the generated order form (PDF format)?") = Yes THEN
// Display the generated order form
ShellExecute(FileName)
ELSE
iPrintPDF(FileName)
END


Ou

https://help.windev.com/en-US/…
sPath is string = CompleteDir(SysDirStorageCard()) + "invoice.pdf"
IF NOT GglPrintDocument(sPath)
Error("The document was not printed.")
END


--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 99949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/