LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   CUPS to Winxp for printing (https://www.linuxquestions.org/questions/solaris-opensolaris-20/cups-to-winxp-for-printing-379673/)

UltraSoul 11-03-2005 02:31 PM

CUPS to Winxp for printing
 
I have succeded to config my solaris 10 to print to winxp which connects
a Canon LBP1310 laserjet.
# In my Sun WS I installed samba and cups.
# IN my winxp I installed the GHOSTSCRIPT, GSviewer and Redmon to
making Canon LBP 1310 serving as a postscript. I took three hours to
finish this work. I can print in Sun WS by the CANON LBP 1310. But I
found that the lp command can not print a .txt file and can not print the
whole terminal screen.

because I wan to print my circuit schemtic, the method to get a whole
Screen shot is very important. can you give me some advices?
Thank you!

jlliagre 11-03-2005 04:28 PM

You can capture a screenshot with xwd and convert it to a format suitable for printing with convert (ImageMagick)

UltraSoul 11-03-2005 11:19 PM

Yes, xwd is a choice and I have bind a PRINT key to implement a xwd shell.

however, I used a command in my previous university two years ago.
I can not remember the command clearly. Maybe hlp or something else.
if implementing the command in prompt , the mouse cursor changes.
If clicking a window use the mouse cursor, the window will be printed out.
I wonder how can implement the function. Because getting a jpeg by xwd will
decrease the quality of picture.

jlliagre 11-06-2005 06:03 PM

xwd is using a lossless storage format, you certainly can convert it to a graphic format suitable for printing still lossless (not jpeg for that matter).

UltraSoul 11-07-2005 07:10 AM

I have a idear for this printing. I wonder if it can be implemented.


<1„Bind a xwd shell with the left-click mouse button.
The print xwd shell in my SunWS is as follows:
#!/bin/csh
xwd -root -out /ScreenShot.xwd
convert /ScreenShot.xwd /ScreenShot.gif
rm /ScreenShot.xwd

I bound the shell above with Print key. I wonder if I can bind the xwd shell into a
lift-click mouse button.

Note: add the following line into the xwd shell below:
/usr/bin/lp /ScrrenShot.gif


<2> make a mouse-print shell to activiate the bind-key function above.


All times are GMT -5. The time now is 04:27 AM.