PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV Mobile 2024 → [WM20] Android PDF
[WM20] Android PDF
Débuté par J1517, 06 mar. 2018 18:27 - Aucune réponse
Posté le 06 mars 2018 - 18:27
Here is a code to create a PDF on android an also write something on it.

//Here you create the PDF
iDestination(iGenericPDF, CompleteDir(SysDirStorageCard()) + "document.pdf")
//From here you are adding text on the pdf
iPrint(iFont(2) + "Text in font 2")
//Skip page to be on page 2
iSkipPage()
// Customer name on the first line at 50 mm from the border
iPrint(iXPos(50) + "JUAS JUAS")
//End of printing on the document
iEndPrinting()



PCSoft web support code doesn't put you those codes together they only say to you that you need to print with codes but I really don´t know what codes until I search something on the forums a while ago and I want to see if that codes runs on Android so in the end I need to search for it so now I put this for everyone that want to create PDF on android. The bad thing is that you need to create a report using iPrint so you need to calculated the distantce but well you know its better something than nothing~.