Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » RichText,QTF,RTF... » Printing images from Uword
Printing images from Uword [message #10018] Thu, 14 June 2007 00:06 Go to next message
zsolt is currently offline  zsolt
Messages: 696
Registered: December 2005
Location: Budapest, Hungary
Contributor
I'm trying to print documents containing images, pasted fom clipboard. My problem is, that the pictures get messy on printer or in a ps file, captured by printer driver.
PDF export is OK and printing the exported PDF from Adobe reader is OK as well.
Could somebody check if it is a general problem/bug?
Re: Printing images from Uword [message #10019 is a reply to message #10018] Thu, 14 June 2007 08:11 Go to previous messageGo to next message
zsolt is currently offline  zsolt
Messages: 696
Registered: December 2005
Location: Budapest, Hungary
Contributor
I forgot to mention, that OS is WinXP.
Re: Printing images from Uword [message #10030 is a reply to message #10019] Thu, 14 June 2007 22:04 Go to previous messageGo to next message
zsolt is currently offline  zsolt
Messages: 696
Registered: December 2005
Location: Budapest, Hungary
Contributor
Strange...
It is working well with color printer driver (ps).
Testing the output postscript captured on driver (saved to file) seems to be good with color drivers, but messy with black and white drivers.

Any idea?
Re: Printing images from Uword [message #10037 is a reply to message #10030] Sun, 17 June 2007 16:57 Go to previous messageGo to next message
zsolt is currently offline  zsolt
Messages: 696
Registered: December 2005
Location: Budapest, Hungary
Contributor
Any idea?
Re: Printing images from Uword [message #10038 is a reply to message #10037] Sun, 17 June 2007 18:27 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Sorry, one that I have missed....

Will test ASAP... Have you checked how printing works from e.g. WordPad?

What exactly means "messy"?

It is something more serious, I would start looking at DrawImageOp; there is "band compression" code

	if((cx > 2000 || cy > 2000) && IsNull(color)) {



for starters, I would make this false (e.g. ".... && false") and see what happens.

Just for the recored, printing works here....

Note: The purpose of this code is to "compress" unicolor areas by painting them using DrawRect.

Mirek
Re: Printing images from Uword [message #10039 is a reply to message #10038] Sun, 17 June 2007 22:03 Go to previous messageGo to next message
zsolt is currently offline  zsolt
Messages: 696
Registered: December 2005
Location: Budapest, Hungary
Contributor
This is the original picture:
index.php?t=getfile&id=595&private=0

I used ghostview to check the captured postscript files and created screenshots of ghostview windows:

Color printing (HP Color LaserJet 8550-PS driver):
index.php?t=getfile&id=593&private=0
Color, stretched to smaller size in Uword:
index.php?t=getfile&id=594&private=0

B&W printing(HP LaserJet IIIP PostScript Plus driver):
index.php?t=getfile&id=591&private=0
B&W, stretched to smaller size in Uword:
index.php?t=getfile&id=592&private=0
  • Attachment: bw.png
    (Size: 13.83KB, Downloaded 817 times)
  • Attachment: bw-stretched.png
    (Size: 0.39KB, Downloaded 841 times)
  • Attachment: color.png
    (Size: 10.63KB, Downloaded 835 times)
  • Attachment: color-stretched.png
    (Size: 3.27KB, Downloaded 785 times)
  • Attachment: orig.png
    (Size: 4.14KB, Downloaded 1087 times)
Re: Printing images from Uword [message #10040 is a reply to message #10039] Sun, 17 June 2007 22:09 Go to previous messageGo to next message
zsolt is currently offline  zsolt
Messages: 696
Registered: December 2005
Location: Budapest, Hungary
Contributor
I tested WordPad as well:

B&W:
index.php?t=getfile&id=596&private=0

B&W stretched:
index.php?t=getfile&id=597&private=0
Re: Printing images from Uword [message #10041 is a reply to message #10018] Sun, 17 June 2007 22:29 Go to previous messageGo to next message
zsolt is currently offline  zsolt
Messages: 696
Registered: December 2005
Location: Budapest, Hungary
Contributor
I have tested with:
if(false)

The result with color printer is quite good:
index.php?t=getfile&id=598&private=0

Bit with B&W printer, I got a solid line only:
index.php?t=getfile&id=599&private=0
Re: Printing images from Uword [message #10043 is a reply to message #10041] Mon, 18 June 2007 08:48 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Well, at least it seems to be related...

Can you post your UWord file as well (so that I can test with the same)?
Re: Printing images from Uword [message #10044 is a reply to message #10043] Mon, 18 June 2007 09:38 Go to previous messageGo to next message
zsolt is currently offline  zsolt
Messages: 696
Registered: December 2005
Location: Budapest, Hungary
Contributor
here is the qtf.
  • Attachment: test.qtf
    (Size: 4.41KB, Downloaded 411 times)
Re: Printing images from Uword [message #10045 is a reply to message #10044] Mon, 18 June 2007 10:35 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Prints without an issue for me.... (LaserJet 6L).

Actually, looks very much like printer driver problem - but I understand such explanation is not very helpful...

I will move .qtf file to some more exposed forum place and ask others for tests.
Re: Printing images from Uword [message #10049 is a reply to message #10045] Mon, 18 June 2007 12:08 Go to previous messageGo to next message
zsolt is currently offline  zsolt
Messages: 696
Registered: December 2005
Location: Budapest, Hungary
Contributor
Interesting...
I tested with "Brother HL-8PS" driver, the result is the same as with HP.
But with "Lexmark Optra W810 PS" driver, the result is almost perfect. If I scale the image to a smaller size, the printout is perfect.
Re: Printing images from Uword [message #10051 is a reply to message #10045] Mon, 18 June 2007 12:22 Go to previous messageGo to next message
zsolt is currently offline  zsolt
Messages: 696
Registered: December 2005
Location: Budapest, Hungary
Contributor
Thanks Mirek!

I saw the posts in the other topic.
Maybe the problem is, that older printer drivers in Windows XP doesn't support well the whole printing API of Windows.

I will suggest to my clients to use a newer printer or at least a newer driver.
Re: Printing images from Uword [message #10052 is a reply to message #10051] Mon, 18 June 2007 12:58 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
BTW, I think it is somehow related to printers being PS...

If I remember well, HP printers can run in both modes (Postscript and PCL) - maybe switching to PCL driver could be interesting...
Re: Printing images from Uword [message #10053 is a reply to message #10052] Mon, 18 June 2007 13:22 Go to previous message
zsolt is currently offline  zsolt
Messages: 696
Registered: December 2005
Location: Budapest, Hungary
Contributor
Using PCL, printouts are bad also. I started to use postcript to test if the printer is bad or not. And it is easy to see the results with a PS viewer without printing to paper.
Previous Topic: insert text into RichTable of RichText
Next Topic: Exporting QTF to RTF and HTML (Uword)
Goto Forum:
  


Current Time: Thu Apr 18 09:20:43 CEST 2024

Total time taken to generate the page: 0.02156 seconds