display file from string
display file from string
Dear Sir
We are using your GD viewer as a trial version in order to test it with our product
we want to use the function ( display file from string ) using VB6 but the viewer display the pages empty (blank page)
Please advice
your quick answer will be appreciated
Regards
Ali
We are using your GD viewer as a trial version in order to test it with our product
we want to use the function ( display file from string ) using VB6 but the viewer display the pages empty (blank page)
Please advice
your quick answer will be appreciated
Regards
Ali
Re: display file from string
Hello,
Here a sample:
Kind regards,
Loïc
Here a sample:
Code: Select all
Private Function ReadFile(sFile As String) As Byte()
Dim nFile As Integer
nFile = FreeFile
Open sFile For Binary Access Read As #nFile
If LOF(nFile) > 0 Then
ReDim ReadFile(0 To LOF(nFile) - 1)
Get nFile, , ReadFile
End If
Close #nFile
End Function
Code: Select all
Private Sub mnOpen_Click()
Dim fileData() As Byte
Dim fileDataString As String
fileData = ReadFile("c:\test.pdf")
fileDataString = StrConv(fileData, vbUnicode)
'Call m_GdViewer.DisplayFromByteArray(fileData)
Call m_GdViewer.DisplayFromString(fileDataString)
End Sub
Loïc
Re: display file from string
Dear Sir
I used the code but the software display the pages blank (empty page)
I m using the (gdpicturedotnet) version 16.0.0.400 with VB6 code
waiting for your kind replay
thank you
I used the code but the software display the pages blank (empty page)
I m using the (gdpicturedotnet) version 16.0.0.400 with VB6 code
waiting for your kind replay
thank you
Re: display file from string
Hello,
Hard to answer with no more information. Could you provide a way to reproduce your problem ?
The best option is to write a tiny standalone application reproducing the problem and send the app through http://support.gdpicutre.com if you have valid support plan (or if you are in trial period).
kind regards,
Loïc
Hard to answer with no more information. Could you provide a way to reproduce your problem ?
The best option is to write a tiny standalone application reproducing the problem and send the app through http://support.gdpicutre.com if you have valid support plan (or if you are in trial period).
kind regards,
Loïc
Who is online
Users browsing this forum: No registered users and 1 guest