Home > Net >  The use of PdfiumViewer widget PDF problems
The use of PdfiumViewer widget PDF problems

Time:09-16

Public Class Form2


Private Sub Button1_Click (sender As Object, As EventArgs e) Handles for. Click
PdfViewer1. Document=PdfiumViewer. PdfDocument. Load (" folder D: \ \. PDF ")
End Sub
Click a button, display PDF, how also don't show, can't get a night, I am a little white, can we not just find the online code, master can shows the code, I really don't make it

CodePudding user response:

Who knows what you make in one night? This line of code?

CodePudding user response:

What's wrong with this line of code? With a few lines of code to display?

CodePudding user response:

No one in this BBS?

CodePudding user response:

I didn't use any pdfdocument, but very like to use itextsharp. According to the thinking of itext, this code is problematic, you're supposed to dim pdfview1=new pdfdocument
Pdfview1. Load (pdfsrcPath)

CodePudding user response:

New pdfdocument (here and see if it is need to add createoropen parameters according to directions)

CodePudding user response:

Should be added to Form the inside controls,
With these words: this Controls. The Add (PdfViewer1);
  • Related