Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opening PDF Files.
Message
From
09/04/2003 09:26:36
Alvin Lourdes
Children and Youth Services Cluster
Toronto, Ontario, Canada
 
 
To
All
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Title:
Opening PDF Files.
Miscellaneous
Thread ID:
00775449
Message ID:
00775449
Views:
40
Hi,
When I try to open the PDF file using this code... I receive the following error: Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
How else would I open a PDF file using VB?
Any ideas?

Thanks a bunch.
Alvin

Dim st As New ADODB.Stream
Dim strTemp As String
strTemp = App.path & "\"
st.Type = adTypeBinary
st.Open
st.Write rs.Fields("Image").Value
st.SaveToFile "\\Network\general\Order" + rs.Fields("ImageName").Value, adSaveCreateOverWrite
'frmCTop.Img.Visible = True
'frmCTop.Img.Picture = LoadPicture("\\tas2\general\Order Counter Top Image" + rs.Fields("ImageName").Value)
st.Close
'ERROR GENERATED ON NEXT LINE
st.Open "\\Network\general\Order" + rs.Fields("ImageName").Value, adModeReadWrite, adOpenStreamAsync
Kill ("\\Network\general\Order" + rs.Fields("ImageName").Value)
st.Close
Set st = Nothing
Next
Reply
Map
View

Click here to load this message in the networking platform