Neoteny Posted August 1, 2007 Report Share Posted August 1, 2007 Hi, I'm trying to include a chart in print output, using the paint method. I have the following problem: When I leave the font of chart objects (axes,titles...) 'untouched' everything is fine. The chart prints wysiwyg. However, when I change the font of one or more of the chart objects, the fonts on the print output become much smaller than on the screen (unreadable). They don't even come close to the point size I specified. I tried to work around this problem by adjusting the size of the fonts prior to printing and restoring the size after printing, but I can't discover the scaling factor that I should use (I fiddled around with the twipstopixel values of screen and printer, but that's not it). Could somebody enlighten me? Quote Link to comment Share on other sites More sharing options...
Frank Posted August 1, 2007 Report Share Posted August 1, 2007 Are you including PaintStyles.Print in your Paint Styles parameter? Quote Link to comment Share on other sites More sharing options...
Neoteny Posted August 10, 2007 Author Report Share Posted August 10, 2007 Sorry for the late reply, doesn't matter which style i use (print or normal, it's all the same...). I did find a workaround though: For every font in the ChartFX object model I do the following just prior to calling the paint method (example is for legendbox font): dim dSize as double dSize = Chart1.LegendBoxObj.Font.Size Chart1.LegendBoxObj.Font.Size = dSize As you can see, this looks ridiculous, but it somehow triggers something that makes the font scale correctly. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.