Webgadget and print (javascript) doesnt work?
Posted: Sun May 01, 2011 6:18 pm
Hi all.
I know several of you are using webgadget for printout in Windows. I am porting my program to Mac and got a unpleasant surprise.
There must be a workaround? Please.... ?
The code of the html file is:
<html><body>PRINT TEST<br><a href=javascript:window.print()>Click here to print</a><hr></body></html>
I found something here http://macdevcenter.com/pub/a/mac/2004/ ... ebkit.html but dont know how to use it.
Jesper
I know several of you are using webgadget for printout in Windows. I am porting my program to Mac and got a unpleasant surprise.
There must be a workaround? Please.... ?
Code: Select all
If OpenWindow(0, 0, 0, 200,200, "WebGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
WebGadget(0,0,0,150,150,"http://85.224.159.151/printtest.html")
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf<html><body>PRINT TEST<br><a href=javascript:window.print()>Click here to print</a><hr></body></html>
I found something here http://macdevcenter.com/pub/a/mac/2004/ ... ebkit.html but dont know how to use it.
Jesper