hi!
i am developing the VB.NET software.
it display PDF file from web server, directly.
it use HTTPS protcol.
but i encounter the "Error opening document" message from PDF-XChange Viewer AxtiveX.
and i use basic authentification.
how do i open PDF without such message?
regards,
enda
PDF Open Error through HTTPS
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- User
- Posts: 664
- Joined: Tue Nov 14, 2006 12:23 pm
Re: PDF Open Error through HTTPS
Can you give us sample project with what we can reproduce such problem?
-
- User
- Posts: 17
- Joined: Fri Jun 05, 2009 7:08 am
Re: PDF Open Error through HTTPS
hi!
sample is following.
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
'Dim pdfUrl As String = "https://ybb.softbank.jp/support/connect ... _set04.pdf" <--OK
Dim pdfUrl As String = "https://www.test.com/2009/01.pdf"
Try
AxCoPDFXCview1.OpenDocument(pdfUrl)
Catch ex As Exception
ShowErrorMessage(System.Runtime.InteropServices.Marshal.GetHRForException(ex))
End Try
End Sub
sample is following.
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
'Dim pdfUrl As String = "https://ybb.softbank.jp/support/connect ... _set04.pdf" <--OK
Dim pdfUrl As String = "https://www.test.com/2009/01.pdf"
Try
AxCoPDFXCview1.OpenDocument(pdfUrl)
Catch ex As Exception
ShowErrorMessage(System.Runtime.InteropServices.Marshal.GetHRForException(ex))
End Try
End Sub
You do not have the required permissions to view the files attached to this post.
-
- User
- Posts: 17
- Joined: Fri Jun 05, 2009 7:08 am
Re: PDF Open Error through HTTPS
hi!
i can access that site finally.
i reset the web site SSL and install the certification to my IE browser.
thanks, anyway.
nais1
i can access that site finally.
i reset the web site SSL and install the certification to my IE browser.
thanks, anyway.
nais1
-
- User
- Posts: 17
- Joined: Fri Jun 05, 2009 7:08 am
Re: PDF Open Error through HTTPS
hi again.
Sorry!! i have one more question.
i intend to disappear the error message with the path.
that message is attached.
how do i set the property or develop the software with VB.NET?
nais1
Sorry!! i have one more question.
i intend to disappear the error message with the path.
that message is attached.
how do i set the property or develop the software with VB.NET?
nais1
You do not have the required permissions to view the files attached to this post.
-
- User
- Posts: 664
- Joined: Tue Nov 14, 2006 12:23 pm
Re: PDF Open Error through HTTPS
You can hide open document error dialog by using the following code:
Code: Select all
Dim iActiveDocID As Integer
Try
AxCoPDFXCview1.OpenDocument(pdfUrl, "", iActiveDocID, PDFXCviewAxLib.PXCVA_Flags.PXCVA_NoUI)
Catch ex As Exception
'ShowErrorMessage(System.Runtime.InteropServices.Marshal.GetHRForException(ex))
End Try
-
- User
- Posts: 17
- Joined: Fri Jun 05, 2009 7:08 am
Re: PDF Open Error through HTTPS
Thanks for your support!!
-
- Site Admin
- Posts: 19913
- Joined: Mon Jan 12, 2009 8:07 am
Re: PDF Open Error through HTTPS
I am glad that your problem is solved 
Stefan

Stefan