LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 127
Default Printing Problem

Excel 2003. I am using the following code (attached to a button on a user
form) to print the contents of a text box on the user form. When it is sent
to my printer it always makes the printer think that it needs COM10
envelopes. I just want it to go to plain paper, which is the default for the
printer. What can I do to make it work? Thanks.

Dim PrinterName As String, I As Integer
On Error GoTo Err_PS
I = InStr(Application.ActivePrinter, " on ")
PrinterName = Mid(Application.ActivePrinter, 1, I - 1)
Open PrinterName For Output As #1
Print #1, ProcessStatus.ProcStat.Text
Exit_PS:
Close #1
Exit Sub
Err_PS:
Call MsgBox("Error printing status window. Please contact system
administrator.", vbOKOnly, "Print Error")
ProcessStatus.PrintStatus.Enabled = False
Goto Exit_PS
--
Dr. Doug Pruiett
Good News Jail & Prison Ministry
www.goodnewsjail.org
 
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
Excel 2003 printing problem--printing 1 document on 2 pages Bons Excel Discussion (Misc queries) 0 December 24th 09 04:15 PM
Printing problem Paul Excel Discussion (Misc queries) 3 May 13th 07 09:53 PM
Printing Problem Mark Excel Worksheet Functions 1 March 9th 07 01:58 PM
Printing problem jayhawkjones Excel Discussion (Misc queries) 0 June 8th 05 05:39 PM
printing problem Robert Couchman[_4_] Excel Programming 1 March 3rd 04 03:19 PM


All times are GMT +1. The time now is 07:27 PM.

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"