Click here to Skip to main content
15,936,119 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I did a WinForm application to view PDF files. I use WebView2 of Microsoft and CoreWebView2.Navigate(pdfFile). The PDF - file ist displayed fine, but I have problems if the PDF file has several pages. It shows me the first page and I get scrollbars to go manually to the next pages which works fine too. But I need to diplay one page after the other automatically. Let's say always after 30 seconds I must display the next page. Until now I didn't find a way to do it. I hope that here is someone who knows how to do it!
What is also disturbing me that I see scrollbars, if it's a multipage PDF-file.

If I enter manually the sequence Ctrl Alt G followed by 2 + Enter page no 2 is displayed

What I have tried:

private Microsoft.Web.WebView2.WinForms.WebView2 webView1;
SendKeys.SendWait("^(%(g))"); // Ctrl Alt G

SendKeys.SendWait("2~"); // 2 + Enter

1 solution

Maybe that is not the best way to do what you want. Have a look at the free options in this google search: winform free pdf viewer - Google Search[^]
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900