|
-
May 16th, 2001, 09:00 AM
#1
How to print pdf files to printer
hi,
I want to know how to print pdf files through VB.i know how to print word documents,declare as object and
Option Explicit
Dim o1 As Word.Application
Dim o2 As Word.Document
'Set o1 = CreateObject("word.application")
'
'Set o2 = o1.Documents.Open("c:\applcare.doc")
' Dim BeginPage, EndPage, NumCopies, i
' CommonDialog1.CancelError = True
' On Error GoTo ErrHandler
' CommonDialog1.ShowPrinter
' BeginPage = CommonDialog1.FromPage
' EndPage = CommonDialog1.ToPage
' NumCopies = CommonDialog1.Copies
' For i = 1 To NumCopies
' ' Put code here to send data to your printer.
' o1.Visible = True
' o1.Print
can you please help me how to print it.
Thanks in advance.
syamala
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|