🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.mac.programmer.codewarrior
5 messages
5 total messages Started by Cliff McCollum Fri, 01 Mar 2002 14:29
[Bug?] PowerPlant Printing broken under Carbon
#1039
Author: Cliff McCollum
Date: Fri, 01 Mar 2002 14:29
32 lines
2466 bytes
Has anyone managed to get printing in PowerPlant to work properly under
Carbon? I am using CodeWarrior Pro 7 with all the latest patches.

I have an application whose LDocument subclass has a DoPrint() method, and
it prints as expected to my default printer. No problems there. (For the
curious, my DoPrint method is using Session based printing since that is
what LDocument uses).

However, one of the great features of printing under Carbon is that you
can select an alternative printer right in the Print Dialog box. If, in my
application, I select a printer other than the default, printing ignores
my selection and prints to the default printer anyway.

This isn't correct behavior.

I would love to confirm that what I am doing is right or wrong by looking
at examples from Metrowerks. Sadly, the CodeWarrior CD contains no
examples of printing from PowerPlant under Carbon (at least none I can
find).

Does anyone have any sample code that prints, under Carbon, from
PowerPlant, and can actually use something other than the default printer?
If so, are you willing to share?

Or is this a bug in Carbon/PowerPlant and I should be reporting it to
Metrowerks?

Cliff

-- 
Cliff McCollum
cliffmcc@mac.com
Re: [Bug?] PowerPlant Printing broken under Carbon
#1040
Author: David Dunham
Date: Fri, 01 Mar 2002 23:40
20 lines
1970 bytes
In article <cliffmcc-0103020629470001@h24-67-211-24.gv.shawcable.net>,
Cliff McCollum <cliffmcc@mac.com> wrote:

> Has anyone managed to get printing in PowerPlant to work properly under
> Carbon? I am using CodeWarrior Pro 7 with all the latest patches.

Yes.

> Does anyone have any sample code that prints, under Carbon, from
> PowerPlant, and can actually use something other than the default printer?
> If so, are you willing to share?

I can't easily share it, but I also don't know that I'm doing anything
special. (I'm definitely using session printing.)

-- 
David Dunham    A Sharp    david@SPAM_B_GONE.a-sharp.com
http://www.pensee.com/dunham/
    "I say we should listen to the customers and give them what they want."
    "What they want is better products for free." --Scott Adams
Re: [Bug?] PowerPlant Printing broken under Carbon
#1041
Author: Gabriel Nivasch
Date: Sat, 02 Mar 2002 21:45
20 lines
1883 bytes
Cliff McCollum wrote:
> I would love to confirm that what I am doing is right or wrong by looking
> at examples from Metrowerks. Sadly, the CodeWarrior CD contains no
> examples of printing from PowerPlant under Carbon (at least none I can
> find).

You need the other CD - the Reference CD. There's an example project
at:

(CodeWarrior Examples):MacOS Examples:PowerPlant Examples:PP Book
Code:Chap 14 Solution Code

I cannot test it to see if it prints correctly when one selects
another printer from the Print Dialog, because I don't have a printer.
When I developed my own program, I tested it only with the Preview
button. So when you test the above project to see if it prints
correctly, I would appreciate if you get back to me and tell me what
you find out.

Gabriel
Re: [Bug?] PowerPlant Printing broken under Carbon SOLVED
#1042
Author: Cliff McCollum
Date: Sun, 03 Mar 2002 05:13
46 lines
3032 bytes
Solved the problem. What was wrong? Just call me a bonehead.

Moral of the day: never start a Printing Session on the same PrintSpec
more than once for a single print-job. The second session appeared to
over-ride whatever values were placed in the PrintSpec by the first.

Doh'!

C.


In article <cliffmcc-0103020629470001@h24-67-211-24.gv.shawcable.net>,
cliffmcc@mac.com (Cliff McCollum) wrote:

> Has anyone managed to get printing in PowerPlant to work properly under
> Carbon? I am using CodeWarrior Pro 7 with all the latest patches.
> 
> I have an application whose LDocument subclass has a DoPrint() method, and
> it prints as expected to my default printer. No problems there. (For the
> curious, my DoPrint method is using Session based printing since that is
> what LDocument uses).
> 
> However, one of the great features of printing under Carbon is that you
> can select an alternative printer right in the Print Dialog box. If, in my
> application, I select a printer other than the default, printing ignores
> my selection and prints to the default printer anyway.
> 
> This isn't correct behavior.
> 
> I would love to confirm that what I am doing is right or wrong by looking
> at examples from Metrowerks. Sadly, the CodeWarrior CD contains no
> examples of printing from PowerPlant under Carbon (at least none I can
> find).
> 
> Does anyone have any sample code that prints, under Carbon, from
> PowerPlant, and can actually use something other than the default printer?
> If so, are you willing to share?
> 
> Or is this a bug in Carbon/PowerPlant and I should be reporting it to
> Metrowerks?
> 
> Cliff

-- 
Cliff McCollum
cliffmcc@mac.com
Re: [Bug?] PowerPlant Printing broken under Carbon SOLVED
#1043
Author: Gabriel Nivasch
Date: Sun, 03 Mar 2002 20:12
3 lines
1179 bytes
Glad to hear.

Gabriel
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads