Problems when printing chart on monochrome printer

TeeChart for ActiveX, COM and ASP
Post Reply
Kasper
Newbie
Newbie
Posts: 12
Joined: Wed Jul 09, 2008 12:00 am

Problems when printing chart on monochrome printer

Post by Kasper » Thu Apr 02, 2009 9:08 am

Hi

My app in VB6 is al most there, but some users can not get the print out correct, chart is missing, or is white on the paper.

First I did not understand what went wrong, since it worked perfectly on my color laser, in color and gray scale. But now I have a monochrome printer, an I can see the problem. It should be straight forward, but I can not figure out how to solve the problem.

If I set the "smooth" property to true in the preview window, the output is visible. But if I select an option in the Brother printer driver "enhance printing in gray scale" the print is fine.

But how can I control these settings ?

hope anyone can help !

Regards
Kasper

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Apr 06, 2009 1:44 pm

Hi Kasper,

You could try assigning printer settings like this:

tchart1.Printer.PrinterSettings.XXXXX

It could also be a printer device driver problem. You could try upgrading printer's driver.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Kasper
Newbie
Newbie
Posts: 12
Joined: Wed Jul 09, 2008 12:00 am

Post by Kasper » Tue Apr 07, 2009 9:04 am

Hi again
tchart1.Printer.PrinterSettings.XXXXX
I have tried a lot of different settings, but nothing seems to fix my problem. If I use the feature demo, and search for preview, I can select the "Custom Editor and Previewer".

If I in here add a series, and than add a dotted grid. I have a chart with some dotted grid lines. If I print the chart by using my monochrome printer, the grid line is gone. But if I check the "smooth" option in the preview window, it is on !!

Wat does the smooth option do ? This could help me out ....

This problem is on HP and Brother printers with the newest drivers.

Regards
Kasper

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Apr 07, 2009 9:08 am

Hi Kasper,

Here you'll find what the smooth option does.

Hope this helps!
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Kasper
Newbie
Newbie
Posts: 12
Joined: Wed Jul 09, 2008 12:00 am

Post by Kasper » Tue Apr 07, 2009 1:32 pm

Hi Narcís

My application needs to be able to print without any user interactions. Therefore your solution do not solve my problem. However, it inspired me to make a work around.

I need to to export the chart to a jpeg file, and then import it again and print it out. This works fine. But it would be easier, if you could fix your problem in the teeChart object, so the way of making a print out is the same on color as on monochrome printers :-)

Regards
Kasper

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Apr 09, 2009 11:03 am

Hi Kasper,

You could try setting:

Code: Select all

TChart1.Canvas.Monochrome = True
Before printing and setting it back to false after printing.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Kasper
Newbie
Newbie
Posts: 12
Joined: Wed Jul 09, 2008 12:00 am

Post by Kasper » Tue Apr 14, 2009 7:25 am

I have tried that, but can not see any different between true or false :(

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Thu Apr 16, 2009 9:47 am

Hi,

in the case a solution for you is to set the Smooth option before to print ( it creates a bitmap of the chart internally ) you could set it by default to true by using :

Code: Select all

Private Sub Command1_Click()
With TeePreviewer1
.Chart = TChart1
.Options.AsBitmap = True
.ShowPreview
End With
End Sub

Post Reply