Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Member
 
Location: In a hole in the ground there lived Joshua Fandango
Posts: 30
Default List print quality options for defalut printer

Hi guys,

Anyone know how to list print quality options for the defalut printer?
(Using VBA)

I thought it would be easy, but I've found no clues anywhere!

The purpose of this is to set the print quality of each page to the
same i.e. 600 dpi for printing to .pdfs - that's no problem, but I'd
like the user to be able to select which out of the default printer's
options to use.

An sutiable alternative would be setting to the default printer's
maximum resolution.

Cheers,
JF.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,549
Default List print quality options for defalut printer


PageSetUp has a PrintQuality method.
--
Jim Cone
Portland, Oregon USA



"Joshua Fandango"

wrote in message
Hi guys,
Anyone know how to list print quality options for the defalut printer?
(Using VBA)
I thought it would be easy, but I've found no clues anywhere!
The purpose of this is to set the print quality of each page to the
same i.e. 600 dpi for printing to .pdfs - that's no problem, but I'd
like the user to be able to select which out of the default printer's
options to use.
An sutiable alternative would be setting to the default printer's
maximum resolution.
Cheers,
JF.
  #3   Report Post  
Posted to microsoft.public.excel.programming
Member
 
Location: In a hole in the ground there lived Joshua Fandango
Posts: 30
Default List print quality options for defalut printer

Hi Jim,

I found that; any idea how to use it to do what I'm after?

Cheers,
JF

On 23 Jan, 18:13, "Jim Cone" wrote:
PageSetUp has a PrintQuality method.
--
Jim Cone
Portland, Oregon *USA

"Joshua Fandango"

wrote in message
Hi guys,
Anyone know how to list print quality options for the defalut printer?
(Using VBA)
I thought it would be easy, but I've found no clues anywhere!
The purpose of this is to set the print quality of each page to the
same i.e. 600 dpi for printing to .pdfs - that's no problem, but I'd
like the user to be able to select which out of the default printer's
options to use.
An sutiable alternative would be setting to the default printer's
maximum resolution.
Cheers,
JF.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,549
Default List print quality options for defalut printer

Well ...
'--
Sub HowHighIsUp()
'Jim Cone - Portland, Oregon USA - Jan 2009
'Determines maximum horizontal PrintQuality setting
Dim M As Double
Dim N As Double
Dim lngMax As Double
M = ActiveSheet.PageSetup.PrintQuality(1)
lngMax = M
With ActiveSheet.PageSetup
'Adjust max loop setting for your environment
For N = (M + 100) To (M + 1000) Step 100
On Error Resume Next
.PrintQuality(1) = N
If Err.Number = 0 Then
If lngMax < N Then lngMax = N
Else
Err.Clear
End If
Next 'N
End With
ActiveSheet.PageSetup.PrintQuality(1) = M
MsgBox "Print quality setting is " & M & " " _
& vbCr & "Maximum setting is " & lngMax, _
vbInformation, "Make Sure It Looks Nice"
End Sub
--
Jim Cone
Portland, Oregon USA




"Joshua Fandango"

wrote in message
Hi Jim,
I found that; any idea how to use it to do what I'm after?
Cheers,
JF



On 23 Jan, 18:13, "Jim Cone"
wrote:
PageSetUp has a PrintQuality method.
--
Jim Cone
Portland, Oregon USA




"Joshua Fandango"

wrote in message
Hi guys,
Anyone know how to list print quality options for the defalut printer?
(Using VBA)
I thought it would be easy, but I've found no clues anywhere!
The purpose of this is to set the print quality of each page to the
same i.e. 600 dpi for printing to .pdfs - that's no problem, but I'd
like the user to be able to select which out of the default printer's
options to use.
An sutiable alternative would be setting to the default printer's
maximum resolution.
Cheers,
JF.

  #5   Report Post  
Posted to microsoft.public.excel.programming
Member
 
Location: In a hole in the ground there lived Joshua Fandango
Posts: 30
Default List print quality options for defalut printer

Fantastic!

Thanks everso much Jim, now I see why I couldn't get anywhere!
I was trying "ActiveSheet.PageSetup.PrintQuality" - excluding the
"(1)". There was a clue to use it in the help file, but I managed to
overlook it :(

Every day's a school day...

On 26 Jan, 17:41, "Jim Cone" wrote:
Well ...
'--
Sub HowHighIsUp()
'Jim Cone - Portland, Oregon USA - Jan 2009
'Determines maximum horizontal PrintQuality setting
*Dim M As Double
*Dim N As Double
*Dim lngMax As Double
*M = ActiveSheet.PageSetup.PrintQuality(1)
*lngMax = M
*With ActiveSheet.PageSetup
'Adjust max loop setting for your environment
*For N = (M + 100) To (M + 1000) Step 100
* * *On Error Resume Next
* * .PrintQuality(1) = N
* * *If Err.Number = 0 Then
* * * * If lngMax < N Then lngMax = N
* * *Else
* * * * Err.Clear
* * *End If
*Next 'N
*End With
*ActiveSheet.PageSetup.PrintQuality(1) = M
*MsgBox "Print quality setting is *" & M & " * " _
* * * * & vbCr & "Maximum setting is *" & lngMax, _
* * * * vbInformation, "Make Sure It Looks Nice"
End Sub
--
Jim Cone
Portland, Oregon *USA

"Joshua Fandango"

wrote in message
Hi Jim,
I found that; any idea how to use it to do what I'm after?
Cheers,
JF

On 23 Jan, 18:13, "Jim Cone"



wrote:
PageSetUp has a PrintQuality method.
--
Jim Cone
Portland, Oregon USA
"Joshua Fandango"

wrote in message
Hi guys,
Anyone know how to list print quality options for the defalut printer?
(Using VBA)
I thought it would be easy, but I've found no clues anywhere!
The purpose of this is to set the print quality of each page to the
same i.e. 600 dpi for printing to .pdfs - that's no problem, but I'd
like the user to be able to select which out of the default printer's
options to use.
An sutiable alternative would be setting to the default printer's
maximum resolution.
Cheers,
JF.- Hide quoted text -


- Show quoted text -




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,549
Default List print quality options for defalut printer


You are welcome and thanks for the feedback.
'--
Jim Cone





"Joshua Fandango"

wrote in message
Fantastic!
Thanks ever so much Jim, now I see why I couldn't get anywhere!
I was trying "ActiveSheet.PageSetup.PrintQuality" - excluding the
"(1)". There was a clue to use it in the help file, but I managed to
overlook it :(
Every day's a school day...

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
Macro to print plus list options? Marc T Excel Programming 2 October 8th 08 12:49 PM
default printer print quality list Gene Mills Excel Programming 0 March 7th 06 11:52 PM
can I get the printer options to display with the print icon Billyd Excel Programming 1 November 9th 05 05:23 PM
Users printer list/ Dialog for print NAME aking1987[_5_] Excel Programming 0 November 12th 04 02:02 PM
Users printer list/ Dialog for print NAME aking1987[_4_] Excel Programming 0 November 12th 04 08:47 AM


All times are GMT +1. The time now is 08:53 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"