Re: [Gimp-developer] GIMP Print Dialog Box

2002-07-09 Thread Sven Neumann

Hi,

WHITE,CURTIS (HP-USA,ex1) [EMAIL PROTECTED] writes:

 How do I bypass the print dialog box in Gimp?  I have written a batch script
 that works but the print box comes up and I wnt it to go straight to the
 printer.  We have tried modifying the print.c and gimp_main_window.c code.
 Any assistance would be apreciated.

it should work the usual way: call the print procedure with run_mode
set to GIMP_RUN_NONINTERACTIVE and pass the necessary parameters.


Salut, Sven
___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer



RE: [Gimp-developer] GIMP Print Dialog Box

2002-07-09 Thread WHITE,CURTIS (HP-USA,ex1)

Here is my script that I run in Script-Fu:
(set! l3image (car (extension-screenshot 1 TRUE )))
(file-print-gimp 0 l3image l3image lp -s -dhpcp1160 -oraw DJ9xxVIP
usr/share/printconf/foomatic/data/DJ9xxVIP-530418.foo 1 300 Letter
Plain Tray1 1 100 -1 -1 -1 1 1 1 1 1 0 2 2 1 \0 Adaptive 0)

When I use 1 for run_mode it errors out.  Thank you in advance for your
help.

-Original Message-
From: Sven Neumann [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 09, 2002 9:05 AM
To: WHITE,CURTIS (HP-USA,ex1)
Cc: '[EMAIL PROTECTED]'
Subject: Re: [Gimp-developer] GIMP Print Dialog Box


Hi,

WHITE,CURTIS (HP-USA,ex1) [EMAIL PROTECTED] writes:

 How do I bypass the print dialog box in Gimp?  I have written a batch
script
 that works but the print box comes up and I wnt it to go straight to the
 printer.  We have tried modifying the print.c and gimp_main_window.c code.
 Any assistance would be apreciated.

it should work the usual way: call the print procedure with run_mode
set to GIMP_RUN_NONINTERACTIVE and pass the necessary parameters.


Salut, Sven
___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer



Re: [Gimp-developer] GIMP Print Dialog Box

2002-07-09 Thread Sven Neumann

Hi,

WHITE,CURTIS (HP-USA,ex1) [EMAIL PROTECTED] writes:

 Here is my script that I run in Script-Fu:
 (set! l3image (car (extension-screenshot 1 TRUE )))
 (file-print-gimp 0 l3image l3image lp -s -dhpcp1160 -oraw DJ9xxVIP
 usr/share/printconf/foomatic/data/DJ9xxVIP-530418.foo 1 300 Letter
 Plain Tray1 1 100 -1 -1 -1 1 1 1 1 1 0 2 2 1 \0 Adaptive 0)

passing the image_id as drawable_id doesn't look like a good idea...

 When I use 1 for run_mode it errors out.  Thank you in advance for your
 help.

did you check that the supplied parameters match the requirements?
You can look the PDB call up in the DB Browser to check this.

BTW, if all you want to achieve is a print-out of your desktop, you
should consider using something less complex than The GIMP.


Salut, Sven
___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer