Cool! Danke für den Hinweis.ts-soft hat geschrieben:Ich weiß nicht ob man nicht doch Foxit nutzen kann?
ProgramID ist: FOXITREADEROCX.FoxitReaderOCXCtrl.1

Diese OCX kommt anscheinend mit der neuen Version 3.0, die ich noch
nicht installiert hatte. Ich erstelle dann mal den COMate-Code...
Grüße ... Kiffi
// Edit: Hier isser
Code: Alles auswählen
IncludePath #PB_Compiler_Home + "\srod\comate" ; Pfad anpassen!
XIncludeFile "comate.pbi"
Define.COMateObject FoxitReaderControl
OpenWindow(0, #PB_Ignore, #PB_Ignore, 800, 600, "Foxit Reader - Demo", #PB_Window_SystemMenu | #PB_Window_Invisible)
FoxitReaderControl = COMate_CreateActiveXControl(0, 0, 800, 600, "FOXITREADEROCX.FoxitReaderOCXCtrl.1")
If FoxitReaderControl = 0
MessageRequester("", COMate_GetLastErrorDescription())
End
EndIf
FoxitReaderControl\Invoke("OpenFile('D:\downloads\09328122.pdf')") ; Pfad anpassen!
While WindowEvent() : Delay(1) : Wend
HideWindow(0, #False)
Repeat
WWE = WaitWindowEvent()
Until WWE = #PB_Event_CloseWindow
FoxitReaderControl\Release()