Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

Navigate

Post Reply
User avatar
salvadordf
Posts: 4056
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Navigate

Post by salvadordf »

Hi,

The easiest way to open a local file is using TChromium.OpenURL with a FILE URL. There's an example in the MiniBrowser demo.
That demo calls Chromium1.LoadURL('file:///' + OpenDialog1.FileName); to open the file you selected.

However, this way of opening files has some limitations because Chromium has some security measures with FILE URLs. If your app needs to avoid them use the SchemeRegistrationBrowser demo to open local files.
Post Reply