saeedbay 0 Posted December 29, 2022 how can i create pdf report or picture report for android device Share this post Link to post
Alexander Sviridenkov 356 Posted December 29, 2022 Use any FMX reporting library that works on Android. Share this post Link to post
weabow 6 Posted December 29, 2022 I use TMS Libraries for that : runs fine. Share this post Link to post
saeedbay 0 Posted January 7, 2023 i used tms for creating pdf in document folder of device but how can i open and show that pdf file in pdf reader applications? Share this post Link to post
weabow 6 Posted January 7, 2023 First : fDocPDF.BeginDocument(FileName);//where filename is the name of the pdf file Second : fDocPDF.EndDocument(true); Share this post Link to post
saeedbay 0 Posted January 8, 2023 (edited) this command works only on windows but in android not work Edited January 8, 2023 by saeedbay Share this post Link to post
saeedbay 0 Posted January 8, 2023 i dolved problem with intent URI := TJnet_Uri.JavaClass.parse(StringToJString('content:///' + TPath.GetDocumentsPath + PathDelim + AFileName)); intent := TJIntent.Create; intent.setAction(TJIntent.JavaClass.ACTION_VIEW); intent.setDataAndType(URI,StringToJString('application/pdf')); SharedActivity.startActivity(intent); Share this post Link to post