In a third party website There is a button to generate a PDF document of certain document.
When I press the button a popup window are open displaying the requested PDF document.
So, In order to get it, I use the NewWindow event to Display it on the HTMLViewer et voila!!.
The PDF is displayed on the HTMLViewer, so, but that I wanna do is to download this file, not only open it.
So, I planned to use a HTTPSecureSocket, catch the cookie with ChristianMBS and then Download it, but it doesn’t work.
Does anybody a better way to do that?
Is this on Mac?
I think you can get the PDF there from HTMLViewer1.mainFrameMBS.dataSource.data.
[quote=300682:@Christian Schmitz]Is this on Mac?
I think you can get the PDF there from HTMLViewer1.mainFrameMBS.dataSource.data.[/quote]
Yeah I’m on Mac, I forgot to say that I use
But I’m planing to use it on Windows and Mac, is there a way to run HTMLViewer1.mainFrameMBS.dataSource.data. on both platforms?
This function is for Mac only.
But we can grab URL for Windows, too and download it direct, I guess.
[quote=300691:@Christian Schmitz]This function is for Mac only.
But we can grab URL for Windows, too and download it direct, I guess.[/quote]
Looking on the forum I found this for Windows: HTMLViewer1.ChromiumBrowserMBS.MainFrame.Source
This for Linux: HTMLViewer1.LinuxWebViewMBS.MainFrame.DataSource.Data
using a IF target.
But I have a Question Ok. I have HTMLViewer1.mainFrameMBS.dataSource.data
So, how can I use it.
Must I use after return me or before this on NewEvent’s HTMLViewer event?
I tried to do:
Dim f as Folderitem = HTMLViewer1.mainFrameMBS.dataSource.data
but this is a memory block, not a folderitem
you need to wait at least for the PDF to load.