Page 1 of 1

View PDF in Windows

Posted: Tue May 09, 2023 1:13 am
by atostaine
I'm trying to use VA_WEBCTL to view a PDF that is local to the PC I'm running my VLF app on.

The PDF comes from a FETCH to a table with a BLOB. It's put deep in some temp directory. I try setting the URL to the file name, I put the prefix file://, nothing works.

Is it possible to do this? If not why don't we have an easy way to view PDF's in Lansa for Windows?

Re: View PDF in Windows

Posted: Tue May 09, 2023 7:09 am
by davidbalansa
Hi Art,

I am still on Windows 10. I tried the example in the shipped VLFWIN 'Showing a web page'. I changed the URL to a file path 'C:\investigation.pdf'. It still looks to be working. The command handler (reusable part) is DF_WEBBR. It uses the browser control #DF_WEBAC
Capture6.PNG
Capture6.PNG (110.02 KiB) Viewed 13259 times
Regards,
David

Re: View PDF in Windows

Posted: Wed May 10, 2023 12:54 am
by atostaine
Thanks for the reply. It's not working for me in Windows 11, but I don't think that windows version is the problem. Here's a screenshot of the browser component as blank, and the "message line" below shows the actual file name that I've confirmed exists.

*EDIT* is it possible using Directx is causing me my problem? I need to test that.

Re: View PDF in Windows

Posted: Wed May 10, 2023 1:22 am
by atostaine
Yeah a form in Win32 or Directx isn't working for me either. Stumped on this one.

Re: View PDF in Windows

Posted: Thu May 11, 2023 3:29 am
by atostaine
When I use the shipped example to view the PDF it opens in a seperate window. Does this happen to you as well?