View PDF in Windows

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
atostaine
Posts: 696
Joined: Wed Jan 20, 2016 7:38 am

View PDF in Windows

Post 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?
Art Tostaine
davidbalansa
Posts: 92
Joined: Mon Feb 01, 2016 10:08 am

Re: View PDF in Windows

Post 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 13257 times
Regards,
David
atostaine
Posts: 696
Joined: Wed Jan 20, 2016 7:38 am

Re: View PDF in Windows

Post 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.
Attachments
Screenshot 2023-05-09 at 10.24.25 AM.png
Screenshot 2023-05-09 at 10.24.25 AM.png (40.94 KiB) Viewed 13245 times
Art Tostaine
atostaine
Posts: 696
Joined: Wed Jan 20, 2016 7:38 am

Re: View PDF in Windows

Post by atostaine »

Yeah a form in Win32 or Directx isn't working for me either. Stumped on this one.
Art Tostaine
atostaine
Posts: 696
Joined: Wed Jan 20, 2016 7:38 am

Re: View PDF in Windows

Post 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?
Art Tostaine
Post Reply