Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Opening PDF Files.
Message
De
09/04/2003 09:26:36
Alvin Lourdes
Children and Youth Services Cluster
Toronto, Ontario, Canada
 
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Titre:
Opening PDF Files.
Divers
Thread ID:
00775449
Message ID:
00775449
Vues:
39
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform