User (Legacy) Posted July 17, 2002 Report Share Posted July 17, 2002 I'm hoping someone can help me with this because I'm beginning to go crazy trying to work this one out... I have word document with some of the different file types of image that ChartFX is capable of exporting including JPG/PNG/BMP - but the print quality of the graphs just isn't up to scratch. However, If I embed a ChartFX object using the CHD file into the Word document the printed output is perfect. (I think this may be something to do with the object uses vector graphics as opposed to the images which become rasterised.) But, I need to embed the image in an RTF file so am unsure how I can use the CHD file to do this - I think I may need some kind of File to OLE convertor. Does anyone know how to do this? If not, what is another way of producing printable quality charts from within the ChartFX software. Please help. Thanks, Jamie Attachments.zip Link to comment Share on other sites More sharing options...
Software FX Posted July 19, 2002 Report Share Posted July 19, 2002 Yes, this is exactly the cause, a bitmap,jpeg or PNG is too small for the printer resolution so it is "stretched" which makes it appear fuzzy. Exporting to a Metafile or OLE Object will fix this problem. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
User (Legacy) Posted July 19, 2002 Author Report Share Posted July 19, 2002 When you say export to a Metafile do you mean WMF? Please can you give an example piece of VB code to do this? "SoftwareFX Support" <support@softwarefx.com> wrote in message news:1dSmJAzLCHA.1280@webserver1.softwarefx.com... > Yes, this is exactly the cause, a bitmap,jpeg or PNG is too small for the > printer resolution so it is "stretched" which makes it appear fuzzy. > > Exporting to a Metafile or OLE Object will fix this problem. > > -- > FP > Software FX, Inc. > > Link to comment Share on other sites More sharing options...
Software FX Posted July 22, 2002 Report Share Posted July 22, 2002 The metafile is a Enhanced Windows Metafile (EMF), compatible with virtually any Windows program. To export to a metafile, use: Chart.Export CHART_METAFILE, FileName -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
User (Legacy) Posted July 23, 2002 Author Report Share Posted July 23, 2002 Hi, I having the same problem. Here is an extract of my code - I am referencing the CFX4032.DLL (version v5.05.0) Dim Chart as New ChartFX Chart.GetExternalData cfxData Chart.Gallery = BAR Chart.Export CHART_METAFILE, "c:\temp\chart.emf" The file that gets created is 0Kb in size. This also happens if I try exporting to the other supported file types including BMP. The only file type that I can get to create anything is if I use CHART_CFXOLEFILE and create a *.CHD - which I can then open up and edit. "SoftwareFX Support" <support@softwarefx.com> wrote in message news:MwvwJxYMCHA.1280@webserver1.softwarefx.com... > The metafile is a Enhanced Windows Metafile (EMF), compatible with virtually > any Windows program. > > To export to a metafile, use: > > Chart.Export CHART_METAFILE, FileName > > -- > FP > Software FX, Inc. > > Link to comment Share on other sites More sharing options...
Software FX Posted July 23, 2002 Report Share Posted July 23, 2002 Does the chart have a size ? The chart need to have a size before it is exported to an image, to give the chart a size, using the DLL, you must call the CreateWnd method. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
User (Legacy) Posted July 24, 2002 Author Report Share Posted July 24, 2002 There is no CreateWnd method exposed that I can use! (I am using VB). Using one of the sample pieces of code that was supplied I have been able to create a simple project that is capable of creating BMP and EMF files. This works by using Controls.Add("ChartFX.Chart","Chart") - however, I need to do this from a VB DLL (no user interface) - how can I do this? "SoftwareFX Support" <support@softwarefx.com> wrote in message news:XOh9wBoMCHA.1884@webserver1.softwarefx.com... > Does the chart have a size ? The chart need to have a size before it is > exported to an image, to give the chart a size, using the DLL, you must call > the CreateWnd method. > > -- > FP > Software FX, Inc. > > Link to comment Share on other sites More sharing options...
Software FX Posted July 24, 2002 Report Share Posted July 24, 2002 You said you were using the DLL not the OCX. Right ? There is a CreateWnd method, it can be used as follows: Chart.CreateWnd 0, 0, 0, 0, 600, 400, &H10C40000 This code works and has been tested in VB 6 using the Chart FX DLL. Maybe you are using the OCX and you were mistaken when you said Cfx4032.DLL ? Please let me know. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.