Jump to content
Software FX Community

Recommended Posts

Looks like ActiveReports is scaling the Device Context so it is not using

its full resolution. Try printing the chart alone from the toolbar to see if

the aliasing disappears, if it does, then it is happening because of scaling

done by Active Reports, you may want to contact them to see if there is a

way to draw using the real printer resolution .

--

FP

Software FX, Inc.

Link to post
Share on other sites

Please see my post titled "Post for People with Chartfx Problems" in the

support.activereports2.proedition newsgroup to see it that might help.

Daniel Reber

Datamasters, Inc

"Erwin" <erwin@allocare.com> wrote in message

news:DO1yCtJOCHA.1280@webserver1.softwarefx.com...

> ChartFx is drawing ugly lines or curves. I use the ChartFx ClientServer

5.1

> with ActiveReport2.

> All possible printer settings didn't help so far. What do I wrong? Is it

> possible to have a kind of antialiasing?

>

>

> Many Thanx

>

> Erwin

>

>

Link to post
Share on other sites

By the way, copying to Clipboard as Bitmap, Metafile or as OLE Object has

the same output as with Active Report!

Is there really no way to handle the aliasing?

Regards,

Erwin

"SoftwareFX Support" <support@softwarefx.com> wrote in message

news:VBvd85JOCHA.2648@webserver1.softwarefx.com...

> Looks like ActiveReports is scaling the Device Context so it is not using

> its full resolution. Try printing the chart alone from the toolbar to see

if

> the aliasing disappears, if it does, then it is happening because of

scaling

> done by Active Reports, you may want to contact them to see if there is a

> way to draw using the real printer resolution .

>

> --

> FP

> Software FX, Inc.

>

>

ChartFx is drawing ugly lines or curves. I use the ChartFx ClientServer 5.1

with ActiveReport2.

All possible printer settings didn't help so far. What do I wrong? Is it

possible to have a kind of antialiasing?

Many Thanx

Erwin

Link to post
Share on other sites

Once you export to a bitmap you are fixing the size in pixels, because the

printer resolution is much bigger than the screen (600 or 1200 DPI against

96 on the screen) these pixels will get bigger producing the aliasing, you

nee to keep the chart in a VECTOR format (e.g. Metafile) if you want to take

advantage of the printer resolution.

However, you are still depending on the container on how it sends the chart

to the printer, even if you export to a metafile, the container may be

scaling the printer to make it look like the screen. So it goes back to my

first comment, you need to contact Active Reports (the container) to find

out what they do and if you have any control over it.

You didn't answer my question: Does the chart look ok when you print it from

the Chart FX toolbar ?

--

FP

Software FX, Inc.

Link to post
Share on other sites

Printing the direct way looks perfect. But not the exporting way!!!

I understud your arguments but I have no idea how I could solve this, not

even with VB6?

I've done another try just with VB6. I have just one ChartFX on a Form:

With ChartFX1

Printer.PrintQuality = vbPRPQHigh

.Printer.hDC = Printer.hDC

.Printer.UsePrinterResolution = True

.Gallery = CURVE

.Chart3D = False

'looks still ugly with aliasing, except the scaling is ok

.Export CHART_METAFILE, "c:\temp\~test.emf"

'this looks perfect

.PrintIt 1, 1

End With

In this sample you mean with "Container" the form where the chart was

pasted, right? How can I set the PrintQuality of that container?

Thank you for your patient

regards,

erwin

"SoftwareFX Support" <support@softwarefx.com> wrote in message

news:W8AeRvjOCHA.1280@webserver1.softwarefx.com...

> Once you export to a bitmap you are fixing the size in pixels, because the

> printer resolution is much bigger than the screen (600 or 1200 DPI against

> 96 on the screen) these pixels will get bigger producing the aliasing, you

> nee to keep the chart in a VECTOR format (e.g. Metafile) if you want to

take

> advantage of the printer resolution.

>

> However, you are still depending on the container on how it sends the

chart

> to the printer, even if you export to a metafile, the container may be

> scaling the printer to make it look like the screen. So it goes back to my

> first comment, you need to contact Active Reports (the container) to find

> out what they do and if you have any control over it.

>

> You didn't answer my question: Does the chart look ok when you print it

from

> the Chart FX toolbar ?

>

> --

> FP

> Software FX, Inc.

>

>

Link to post
Share on other sites

The container in this case is ActiveReports, you need to talk to them, you

already saw the ability of Chart FX to draw using the printer resolution

(when you used PrintIt) now you need to figure out how to make

ActiverReports do the same (if possible). We can not help you there as we

are not Active Report experts.

--

FP

Software FX, Inc.

Link to post
Share on other sites

Don't get me wrong! I'm not talking about ActiveReport anymore.

The sample was done with VB and ChartFX and nothing else. My point of view

is, that it should also be possible, to export at least a nice looking

Metafile(with the right configuration) by just using VB and ChartFX. The

problem now is only, that I don't know how?

Thanks again.

regards,

Erwin

"SoftwareFX Support" <support@softwarefx.com> wrote in message

news:9LWMXpIPCHA.1280@webserver1.softwarefx.com...

> The container in this case is ActiveReports, you need to talk to them, you

> already saw the ability of Chart FX to draw using the printer resolution

> (when you used PrintIt) now you need to figure out how to make

> ActiverReports do the same (if possible). We can not help you there as we

> are not Active Report experts.

>

> --

> FP

> Software FX, Inc.

>

>

Link to post
Share on other sites
  • 3 weeks later...

I've found the problem!!!

ChartFX is making to many nodes(points) in the metafile!

I reduced the number of nodes with a graphic tool and set the lines to

Curved Segment and then the chart looked alright in any resolution.

Is it possible to reduce the number of points with ChartFX? And to set the

line segment from straight to curved ?

Maybe setting the line segment to curved would be enought.

I attached a sample metafile, produced with VB and ChartFX

chartFx.Export CHART_METAFILE, "Sample.emf"

Thanks a lot for your fast Help!

Regards,

Erwin

"SoftwareFX Support" <support@softwarefx.com> wrote in message

news:CAEwLXJPCHA.1280@webserver1.softwarefx.com...

> I don't understand then. You export the chart to a metafile and then how

do

> you print it ? That is what's important who whoever prints the metafile

> decides what resolution to use, the Metafile itself has no resolution

since

> it is a vector graphics.

>

>

> --

> FP

> Software FX, Inc.

>

>

Paint2CDC.bmp

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...