Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default How do I print to a printer in VB 6?

I am just learning VB6 and I do not see how data is sent to a printer. There
is not a printer method that I can find
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default How do I print to a printer in VB 6?

Try PRINTOUT

activesheet.printout

"bnadler" wrote:

I am just learning VB6 and I do not see how data is sent to a printer. There
is not a printer method that I can find

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default How do I print to a printer in VB 6?

I have tried using Printer.Print but I cannot find the Printer object
anywhere. It isn't even listed in the help section.

"Joel" wrote:

Try PRINTOUT

activesheet.printout

"bnadler" wrote:

I am just learning VB6 and I do not see how data is sent to a printer. There
is not a printer method that I can find

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default How do I print to a printer in VB 6?

Microsfot documentation is really bad. they don't tell you what type object
you are suppose top use. In this case the object is the worksheet and you
can't change printers. The printer is the default printer on you PC.

activesheet.printout

"bnadler" wrote:

I have tried using Printer.Print but I cannot find the Printer object
anywhere. It isn't even listed in the help section.

"Joel" wrote:

Try PRINTOUT

activesheet.printout

"bnadler" wrote:

I am just learning VB6 and I do not see how data is sent to a printer. There
is not a printer method that I can find

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default How do I print to a printer in VB 6?

You may want to ask in a forum dedicated to VB--not excel.

If you really meant you wanted to print something in excel's vba:

worksheets("Sheet999").printout 'preview:=true
or
worksheets("sheet999").range("x1:Z9").printout 'preview:=true

bnadler wrote:

I am just learning VB6 and I do not see how data is sent to a printer. There
is not a printer method that I can find


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how can I use print preview without having a printer cookie Excel Discussion (Misc queries) 5 December 2nd 08 02:40 PM
members on my network printer not able to print to default printer smeheut Excel Discussion (Misc queries) 0 June 18th 07 06:42 PM
Printer.Print Not Working? pike168 Excel Programming 5 April 2nd 06 02:59 PM
how can I get my printer to print in grayscale ? FRUSTRATED Excel Discussion (Misc queries) 1 November 23rd 05 03:21 AM
Code to Print to certain Printer John[_81_] Excel Programming 2 May 7th 04 08:42 PM


All times are GMT +1. The time now is 08:58 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"