file types problem

almubarmeg
05-08-2003, 10:11 PM
Hello, my friends

I have a problem with files. My program is only works with the files that have the extention .txt. What i want is, let the program works for opening document and pdf files to deal with . how can i do that ....these are the codes below

Do While Not EOF(1)

Line Input #1, stringline(linecount)
...........
...........
...........
loop


Private Sub lbopen_Click()

With dlgCommonDialog
.DialogTitle = "Open"
.CancelError = False
.Filter = "All Files (*.*)|*.*"
.ShowOpen
If Len(.FileName) = 0 Then
Exit Sub
End If
sfile = .FileName
Open sfile For Input As #1

End With

End sub

YuanHao
05-08-2003, 10:15 PM
You would have to get pdf and doc formats, its not just input. BTW use [ vb ] tags. :D

almubarmeg
05-08-2003, 10:20 PM
could you please explain more

thanks

Robse
05-08-2003, 10:47 PM
What he means is you can't just read in .pdf and .doc files
by using simple VB file operations. Well you can but then you'll
mostly get garbage. The formats of .pdf and .doc files are very
complicated, and you need a third party control to use
these formats within your VB programs.

almubarmeg
05-08-2003, 10:50 PM
Thanks for these information, but what will be the control name and how can i used it. thanks alot

MindGenius
05-08-2003, 11:54 PM
Oh... BTW, just put [ VB ] and [/ VB ] (without the spaces) B4 and after code.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum