FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
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
Connectez-vous…
BOLLER
#1
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/…
s
Path
is string
=
CompleteDir
(
SysDirStorageCard
(
)
) +
"invoice.pdf"
IF
NOT
GglPrintDocument
(
s
Path
)
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/
Signaler
0
0
→ Revenir à WINDEV 25
WINDEV 25
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte