logo
small logo
  • Products
  • Buy
  • Support
  • About
  • Customer panel Support
    • en
    • de
    • JP
    • ZH
  • Home
  • /
  • Articles
  • /
  • New transport Yandex Disk in FastReport VCL
  • Connecting to cloud storage in FastReport VCL

    September 11, 2021

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

    read more
  • Turn database data into a document in Delphi / Lazarus / C++ Builder

    February 3, 2021

    How to make a mush of data into an informative report? Oracle DB, MySQL, Microsoft SQL

    read more
  • How to create one single report out of several in Delphi / Lazarus / C++ Builder

    December 11, 2020

    I would like to note that FastReport VCL is one of the most convenient components

    read more
  • Make Drill-Down report in VCL (Delphi / Lazarus)

    February 9, 2021

    "Drill Down" or "deepening into data" is a concept with many sides, which can refer

    read more
  • How to create CODE 39 and CODE 39 Extended barcodes

    October 23, 2020

    CODE 39 is the barcode developed by Intermec Corporation in 1975. Up to 43 characters

    read more

New transport Yandex Disk in FastReport VCL

December 13, 2021

FastReport VCL

About three years ago, we added a new special component called Transports. They enable to save built reports to the cloud, as well as use files in the cloud (for example, pictures) to build reports.

Until now, there were 4 cloud transports: Dropbox, Google Drive, Box, OneDrive, and 2 non-cloud transports: Email and FTP. You can read how to set up cloud transports here and how to use files from the cloud here.

This article tells how to add a fifth cloud transport: Yandex Disk. Let's look at all setup nuances with a detailed description of the features.

If you have already worked with our cloud transport, then you can skip directly to the chapter telling how to set up the connection.

Adding transport to the application and setting it up

First, as with other transports, you need to add the corresponding component from the “FastReport VCL Internet transports” tab.

Adding a component to a form

You can use the context menu on the component. This will establish a connection directly from the development environment. Click on the “Edit connection” submenu.

Calling the context menu of the transport

By default, transports respond only to the authorization response from the browser using port 9898. If this port is already used or you plan to use this port in the future, then FastReport VCL enables you to change the port in the ListenerPort property.

Transport in the object inspector

Then we will suggest using the default port 9898.

Important! The user does not need to do all of the following steps every time to authorize. This setup is done only once by the cloud administrator. After completing all the steps, the obtained authorization data can be used by other users.

Connecting to Yandex Disk

When a user wants to open or save to a file using a transport, he will see a standard authorization dialog (if he has not logged in earlier).

Standard login dialog

To go to the connection settings page, click on the question mark in the upper right of the authorization window. After that, the default browser will open with the access page for external Yandex Drive applications. If the user is not authorized in Yandex, an authorization page will open, where you will need to log into your Yandex account.

Click on «Create new client».

Access page of Yandex Disk external applications

Enter the name of the application and go down below.

Top of the New Client Page

In the "Platforms" item, select "Web-services", specify "http://localhost:9898" in the "Callback URI" field, and then click "Add".

Note that the port must match the port specified in the ListenerPort property of the transport component.

Setting up the platform when creating a client

The list of possible accesses is quite long, so we have hidden most of them in the picture below.

Open the item "Yandex.Disk REST API" and check the boxes next to "Writing in any place on Yandex.Disk" and "Read all of Yandex.Disk".

Short access setting

Then go down to the very bottom and click "Create app".

Bottom of the of the New Client Page

You will see that the application has been created. Copy the fields "ID" and "Password".

The page of the created client

Paste them into the corresponding input fields of the FastReport VCL authorization dialog.

Standard login dialog with hidden data

Click “Ok”. A new window should open in the default browser. The screen prompts you to select an account for authorization.

Authorization on Yandex

Once the account is selected, you can close the browser window.

Authorization expired message

If the connection is successful, you will see the standard FastReport VCL file browser.

On this screenshot you can see unicode support verification.

Standard FastReport VCL File Browser

We consider transports an important part of our product and are going to constantly increase their number, but we create transports according to your requests as demand creates supply. If you have any suggestions, then you can contact our support.

about product buy
avatar
Sergey Plastun
VCL Development
Fast Reports Team: Sergey Plastun - VCL Development at Fast Reports
VCL Lazarus FastReport Delphi Email Web Storage

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
  • FAQ
  • Tutorial Video
  • Forum
  • Support SLA
  • Articles
  • Our News
  • Press about us
  • Resellers
  • Extended licensing
  • Contact us

© 1998-2023 by Fast Reports Inc.

  • Privacy Policy

Trustpilot