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;
…
….
webView1.Focus();
SendKeys.SendWait(“^(%(g))”); // Ctrl Alt G
SendKeys.SendWait(“2~”); // 2 + Enter
Klaus17 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.