PDF Open Error through HTTPS

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

nais1
User
Posts: 17
Joined: Fri Jun 05, 2009 7:08 am

PDF Open Error through HTTPS

Post by nais1 »

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
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: PDF Open Error through HTTPS

Post by Corwin - Tracker Sup »

Can you give us sample project with what we can reproduce such problem?
nais1
User
Posts: 17
Joined: Fri Jun 05, 2009 7:08 am

Re: PDF Open Error through HTTPS

Post by nais1 »

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
You do not have the required permissions to view the files attached to this post.
nais1
User
Posts: 17
Joined: Fri Jun 05, 2009 7:08 am

Re: PDF Open Error through HTTPS

Post by nais1 »

hi!

i can access that site finally.
i reset the web site SSL and install the certification to my IE browser.

thanks, anyway.

nais1
nais1
User
Posts: 17
Joined: Fri Jun 05, 2009 7:08 am

Re: PDF Open Error through HTTPS

Post by nais1 »

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
You do not have the required permissions to view the files attached to this post.
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: PDF Open Error through HTTPS

Post by Corwin - Tracker Sup »

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
nais1
User
Posts: 17
Joined: Fri Jun 05, 2009 7:08 am

Re: PDF Open Error through HTTPS

Post by nais1 »

Thanks for your support!!
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: PDF Open Error through HTTPS

Post by Stefan - PDF-XChange »

I am glad that your problem is solved :)

Stefan