Code: Select all
If OpenWindow(0, 0, 0, 800, 600, "View PDF", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
fname.s = "C:\pdf_file_you_wish_to_view.pdf"
WebGadget(0, 10, 10, 780, 580, "file://" + fname)
EndIf
Repeat: Until WaitWindowEvent() = #PB_Event_CloseWindow
On my computers, I have IE and FireFox and IE and Chrome. I have changed settings variously to save, view, always ask, or open with Acrobat, but no matter what settings I set, the above code continues to work, displaying PDFs in the web gadget just fine.
I know... my problem is that it works!