 |
|
 |
Colin Evans Level: Guest

|
Re: printing items selected from a list
Hi
Many thanks for your reply which got me back on track, however it seems I still have the problem of printing, whilst I can print an image that is displaying on the screen I can't seem to figure out what the syntax is for printing a file.
Also do the various file formats all need different code dependant on the application, again any help greatly appreciates, the code as it stands so far is below;
Private Sub CmdPrint_Click()
Dim i As Integer
Dim Buffer$
For i = 0 To List1.ListCount - 1
Buffer = ""
If List1.Selected(i) = True Then
Buffer = List1.List(i)
If Left$(Buffer, 1) <> "" Then
Location = Left$(Buffer, InStr(Buffer, " --- ") - 1)
Description = Mid$(Buffer, InStr(Buffer, " --- ") + 5)
doctype = Mid$(Location, InStr(Location, ".") + 1, 3)
End If
If doctype = "doc" Then
'print out the word document
End If
If doctype = "bmp" Then
'print out the bitmapped file
End If
If doctype = "tif" Then
'print out the tif file
End If
End If
Next i
End Sub
|
|
21-05-2003 at 08:21 AM |
|
|  |
|
|
|
|
 |
 |