hi
i have problem with printhtml.exe in windows 8.1 and probably windows 10
but its ok in windows 7
i tested some ways but no chance
update .NetFreamwork
run as administrator
move app to c:/ and other writeable Folders
installing two or more pdfprinter
i also test Erel Example
After clicking on the button, a text file is created, but after that, the program has no reaction. The program also has no error.
i have problem with printhtml.exe in windows 8.1 and probably windows 10
but its ok in windows 7
i tested some ways but no chance
update .NetFreamwork
run as administrator
move app to c:/ and other writeable Folders
installing two or more pdfprinter
i also test Erel Example
Print with PrintHtml tool
PrintHtml is a small Windows utility that you can use to print from your app. First you should download PrintHtml.exe and also the DHTML Editing Control: http://www.printhtml.com/download.php Copy PrintHtml.exe to the Objects folder of your app. Using jShell library we call this utility to...
www.b4x.com
After clicking on the button, a text file is created, but after that, the program has no reaction. The program also has no error.
B4X:
Sub btnPrint_Action
Dim js As Shell
Dim params As List
params.Initialize
'save the text to a file. New lines characters are replaced with <br/>.
File.WriteString(File.DirApp, "temp.txt", txtArea.Text.Replace(CRLF, "<br/>" & CRLF))
If printer.Text <> "" Then params.Add("printername=" & printer.Text)
params.Add("file=temp.txt")
js.Initialize("js", "printhtml.exe", params)
js.WorkingDirectory = File.DirApp
js.Run(-1) 'run with no timeout
btnPrint.Enabled = False
End Sub
Sub js_ProcessCompleted (Success As Boolean, ExitCode As Int, StdOut As String, StdErr As String)
Log("Success=" & Success & ", StdOut=" & StdOut & ", StdErr=" & StdErr)
btnPrint.Enabled = True
End Sub