U
U
Uncle Bogdan2021-04-18 20:44:12
C++ / C#
Uncle Bogdan, 2021-04-18 20:44:12

The CefSharp method does not work. Why?

It seems like I’m calling everything correctly, but there is no result in the Saves folder (a window with the inscription "Fortanulo" appears)
Code:

private async void button3_Click(object sender, EventArgs e)
        {
            try
            {
                await ChromeBrowser.PrintToPdfAsync(@"C:\Program Files (x86)\Arbitr\Saves");
                MessageBox.Show("Фортануло!");
            }
            catch
            {
                MessageBox.Show("Не получилось!");
            }

        }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Karbivnichy, 2021-04-18
@motkot

but there is no result in the Saves folder
Specify a file name.
Make sure you have write access to "C:\Program Files (x86)\Arbitr\Saves". And it is generally not customary to somehow create files in Program Files.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question