AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile
Guys, Please do give me an example on how to print a spreadsheet or an xls file in VB, Thanks
Try this Don't forget the reference Private Sub Command1_Click() Dim xlapp As Excel.Application Set xlapp = New Excel.Application xlapp.Workbooks.Add "c:xlfile.xls" xlapp.Worksheets.PrintOut xlapp.Quit Set xlapp = Nothing End Sub