logo
small logo
  • Products
  • Buy
  • Support
  • Articles
  • Customer panel Support
    • en
    • pt
    • es
    • de
    • pl
    • JP
    • ZH
  • Home
  • /
  • Articles
  • /
  • How to use report export to DropBox (OAuth 2.0) without Internet Explorer in Delphi
  • How to make a PDF from Delphi / C++Builder / Lazarus

    May 14, 2020

    Quite often, you need to get a PDF document from a Pascal application - either

    read more
  • How to create a file in Excel 97 (2000, XP) – XLS from Delphi / C++Builder / Lazarus?

    May 18, 2020

    Oh, it’s an eternal topic – creating an Excel spreadsheet from Delphi. Excel spreadsheets are

    read more
  • How to create a file in TXT format from Delphi / C++Builder / Lazarus

    June 4, 2020

    The TXT file stores text documents with information organized in the form of lines. In

    read more
  • How to create an HTML/HTML5 Layered file from Delphi / C++Builder / Lazarus.

    August 27, 2020

    “How to save in the HTML file format from Delphi?”, “how to create an HTML

    read more
  • How to authorize FastReport VCL for cloud storages access

    September 11, 2021

    Beginning from the first release of FastReport VCL 6 there is an ability to set

    read more

How to use report export to DropBox (OAuth 2.0) without Internet Explorer in Delphi

February 16, 2021

What to do after DropBox stops working with Internet Explorer in OAuth 2.0 authorization mode?

Since DropBox stopped supporting Internet Explorer with OAuth 2.0 authorization and the TWebBrowser component was based on Internet Explorer, there was a problem replacing TWebBrowser for authorization in DropBox.

There are several ways to replace TWebBrowser:

  1. Use the new TEdgeBrowser component introduced in RAD Studio 10.4 or the TWebBrowser component in quirks mode using the Chromium engine-based WebView2 and Edge.
  2. Use free third-party components CEF4Delphi (https://www.briskbard.com/index.php?lang=en&pageid=cef) also based on the Chromium engine.

Chromium

To begin with, we will consider the first option, using new standard components and specifically the main steps so that authorization works for you when exporting to DropBox in FastReport VCL 6 components.

Follow these steps:

  1. IDE preconfiguration according to documentation. At this stage, you need to have a new Edge browser (based on Chromium) installed on your computer, which is usually already installed with new Windows updates, then install the package from GetIt (EdgeView2 SDK) or download from NuGet manually, for details on how to do this see the documentation on the link above. From this package you need the WebView2Loader.dll library corresponding to the bitness of your Win32 or Win64 application.
  2. Next, you need to place this library in the folder where your application is built, if the compilation and assembly was performed in RAD Studio 10.4, then without connecting any modules when exporting and authorizing in DropBox, TWebBrowser will be used in compatibility mode using WebView2.
  3. If you are going to compile your application in RAD Studio version below 10.4, then use TEdgeBrowser for this in the Uses section, connect frxBrowserEdge module. You will also need the Vcl.Edge, Vcl.EdgeConst, WebView2 modules from RAD Studio 10.4 and WebView2Loader.dll library.

Now let's consider the option with third-party free CEF4Delphi components, also based on the Chromium engine:

  1. According to the instructions on the website of the component creators (see the link above) it is necessary to install the CEF4Delphi components, configure your application according to the Usage section of the instructions, and put the required set of files in the application assembly folder, which will increase your application by at least 230 MB.
  2. Next, in the Uses section, connect frxBrowserChromium module to use authorization using a browser based on CEF4Delphi components when exporting to DropBox.

If you did everything correctly, the browser, when exporting to DropBox, will work based on the component you need, and will have Web, Edge, Chromium added to the form name, if not - the browser form when authorised will run in emulation mode of the latest version of Internet Explorer, which in turn will display a message from DropBox saying to change the browser.

about product download buy
avatar
Alexander Syrykh
QA
Fast Reports Team: Alexander Syrykh - Quality Assurance at Fast Reports
Export FastReport 6 DropBox CEF4Delphi WebView2 OAuth 2.0 TEdgeBrowser TWebBrowser

Add comment
logo
  • 800-985-8986 (English, US)
  • +4930568373928 (German)
  • +55 19 98147-8148 (Portuguese)
  • info@fast-report.com
  • 901 N Pitt Str #325 Alexandria VA 22314
  • Buy
  • Download
  • Documentation
  • Testimonials
  • How to uninstall
  • Ticket system
  • FAQ
  • Tutorial Video
  • Forum
  • Articles
  • Our News
  • Press about us
  • Resellers
  • Contact us

© 1998-2022 by Fast Reports Inc.

  • Privacy Policy