Good Afternoon!
We are using PB2019 R2 Build 2328.
I'm looking for some helps!
The request is : open PDF images from the database with Adobe Acrobat Standard 2017 and display the PDF files on the second monitor.
The coding that gets PDF images into Adobe Acrobat is fine. I have problem is the PDF files are not moved to the second monitor.
I'm using OLE for the PDF images then I use the SetWindowPos() to move PDFs to second monitor.
The PDF images with Adobe Acrobat are not moving. If I manually open a PDF and move it to the second monitor then PDF image from PB moved to second monitor but only one PDF image is moved (example if I have 2 PDF images , one is still on the main monitor)
I only call SetWindowPos() to move . I tried with windows created in PB and they all were moved correctly. The Adobe Acrobat PDFs are not.
Could you guys give me some helps ?
Thank you very much!!
Yes.
I have the below:
AVYourDoc = create OleObject
ll_connect = AVYourDoc.Connecttonewobject("AcroExch.AVDoc")
bFileOpen = AVYourDoc.Open( ls_path , ls_file_name)
and call "AcroExch.App" to show the Adobe.
call ll_hWnd = FindWindow(ls_null,ls_null)
and GetWindowText() to check title for matching with "ls_file_name" from AVYourDoc.Open().
It returns the Handle .