Hi all, I have a problem to convert PDF from excel file, i have installed PDF printer and i can make PDF file from excel by manually, I want to make it programetically in VB6. i made a set of code which is working but it sending to Physical printer printer directly, the code
Dim xlapp As excel.Applicati on
Dim xlbook As excel.WorkBook
Dim xlsheet As excel.WorkSheet
Set xlbook = GetObject("d:\T EST.xls")
Set xlapp = xlbook.Parent
xlapp.Visible = True
xlapp.Windows(" TEST.XLS").Visi ble = True
Set xlsheet = xlbook.Sheets(" Sheet1")
xlsheet.PrintOu t , , 1, , "\\server\A DOB PDF"
Pls give me advice where i did mistake, thx advance 4 ur time.
Dim xlapp As excel.Applicati on
Dim xlbook As excel.WorkBook
Dim xlsheet As excel.WorkSheet
Set xlbook = GetObject("d:\T EST.xls")
Set xlapp = xlbook.Parent
xlapp.Visible = True
xlapp.Windows(" TEST.XLS").Visi ble = True
Set xlsheet = xlbook.Sheets(" Sheet1")
xlsheet.PrintOu t , , 1, , "\\server\A DOB PDF"
Pls give me advice where i did mistake, thx advance 4 ur time.
Comment