Loading...

how to view a pdf file from a stream

Support for GdPicturePDF Plugin.

how to view a pdf file from a stream

Postby maxvalt » Thu Dec 08, 2011 4:08 pm

Hi,
I'm not an expert ... but can you help me ?
I would like to view a pdf file from a stream, in net I write
Dim mFileStream As FileStream
mFileStream = New FileStream("pdf_path_file_name", FileMode.Open, FileAccess.Read, FileShare.Read)
and
Dim GdPicturePDF As New GdPicturePDF
GdPicturePDF.LoadFromStream(mFileStream)

and now ? How can i view this in a gdViewer component ?
Thanks in advance
Massimo
maxvalt
 
Posts: 2
Joined: Thu Dec 08, 2011 3:52 pm

Re: how to view a pdf file from a stream

Postby maxvalt » Thu Dec 08, 2011 4:25 pm

I'm sorry...
I found the solution :
Dim mFileStream As FileStream
mFileStream = New FileStream("D:\DatiPassaggio\soam\36-1-0.pdf", FileMode.Open, FileAccess.Read, FileShare.Read)
Dim GdPDFPicture As New GdPicturePDF
If GdPDFPicture.LoadFromStream(mFileStream) = GdPictureStatus.OK Then
GdViewer1.DisplayFromGdPicturePDF(GdPDFPicture)
End If

thank you anyway
maxvalt
 
Posts: 2
Joined: Thu Dec 08, 2011 3:52 pm


Return to GdPicture PDF Plugin

Who is online

Users browsing this forum: No registered users and 1 guest