hi all .. i m using this code to take a snapshot of a form and then print it :
is there a way to improve the resulted image quality ? it s toooo hazy
also is there a way to set the image size to fit A4 page size ??? should this be done on the form width/hight level ?? i.e before taking the snapshot ?
B4X:
Sub Button1_Action
Dim out As OutputStream = File.OpenOutput(File.DirApp, "image.png", False)
MainForm.RootPane.Snapshot.WriteToStream(out)
out.Close
Dim params As List
params.Initialize
'params.Add("printername=novapdf")
params.Add("file=template.html")
sh.Initialize("sh", "printhtml.exe", params)
sh.WorkingDirectory = File.DirApp
sh.Run(-1)
End Sub
is there a way to improve the resulted image quality ? it s toooo hazy
also is there a way to set the image size to fit A4 page size ??? should this be done on the form width/hight level ?? i.e before taking the snapshot ?
Last edited: