Thanks Mark, but the problem remains.

I'm using the following...

on mouseup
    answer printer
    if the result is empty then
        print this card
    end if
end mouseup

for Mac which works fine. This is the same code that you suggest for Win.
I've created a test stack and *still* can't change the orientation on the
pag, and I know that its not just my machine.

The product is now on test with 10 of our consultants. The 2 with Macs said
the print button works 'OK'. 4 of those with PC's have the same problem,
when the orientation is changed in the Page Setup, MC seems to ignore it. (I
guess the other 4 have yet to install the product).

So any suggestions ? Please.... anyone ....?

Regards

Gary Rathbone


on 6/6/01 8:01 pm, Mark Talluto at [EMAIL PROTECTED] wrote:

> This is the script I use to print from both a Mac and a PC:
> 
> if the platform is "MacOs" then
> --SET THE PRINTER MARGINS
> set the printmargins to 17, 25, 5, 5
> 
> open printing with dialogs
> if the result is not empty then
> treset--brings stack that was going to be printed back to original
> size
> exit to metacard
> else
> print this card
> close printing
> end if
> end if
> 
> if the platform is "win32" then
> -- SET THE PRINTER MARGINS
> set the printmargins to 17, 25, 5, 5
> 
> answer printer
> if the result is empty then
> print this card
> end if
> end if
> 
> 
> To get just the "Page Setup" window:
> answer printer
> 
> Hope this helps!
> 
> -Mark Talluto
> 
> 
> On Wednesday, June 6, 2001, at 08:36 AM, Hooknet wrote:
> 
>> I'm missing something simple here. Although having worked with MC for 4
>> years, its the first time I've written an app which has to print from
>> windows.
>> 
>> On the mac something like...
>> 
>> on mouseup
>> answer printer
>> if the result is not "Cancel" then
>> print card
>> end if
>> end mousep
>> 
>> ...works a treat. It opens the Print Setup box where I can choose the
>> settings. The card is then printed appropriately.
>> 
>> On windows these settings are ignored, and no matter what, printed in
>> portait.
>> 
>> I considered creating my own print dialog box. This could, however, miss
>> some important features of the windows users printer which are already
>> available in their Print Setup box. eg my epson offers
>> Lanscape/Portrait,
>> scaling, B&W/Colour, Number of copies, print range, quality-speed, paper
>> type etc.... I really don't want to have to recreate all of these in my
>> own
>> print box (and most, I think, would be impossible).
>> 
>> So, what am I missing ?
>> 
>> TIA
>> 
>> Gary Rathbone BSc.
>> Freelance/Contract
>> Internet and Web Software Development
>> 
>> Phone   :   0113 286 0945
>> Fax     :   0113 286 0946
>> EMail   :   [EMAIL PROTECTED]
>> Web     :   www.GaryRathbone.net
>> ------------------------------------------
>> 
>> 
>> 
>> Archives: http://www.mail-archive.com/[email protected]/
>> Info: http://www.xworlds.com/metacard/mailinglist.htm
>> Please send bug reports to <[EMAIL PROTECTED]>, not this list.
>> 
> 


Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to