User (Legacy) Posted June 15, 2006 Report Share Posted June 15, 2006 Hello I'd like to change the Font of the top title of a Chart (set with chart.Title(CHART_TOPTIT) = "Description") in the VB-Code. I tried chart.Fonts(2) = "Futura" but it produces an error: types mismatching... How can I set my font? btw: I'm using Version 5.1 embedded in ActiveReports... regards, Luzia Quote Link to comment Share on other sites More sharing options...
Software FX Posted June 19, 2006 Report Share Posted June 19, 2006 The Fonts property is not of type string. The Fonts property is set as follows: ChartFX1.Fonts(CHART_VALUESFT) = CF_ARIAL Or CF_BOLD -- Francisco Padron www.chartfx.com Quote Link to comment Share on other sites More sharing options...
User (Legacy) Posted June 19, 2006 Author Report Share Posted June 19, 2006 ... but I have to set the Font "Futura Book". How can I get a code like CF_ARIAL for that? regards, Luzia "SoftwareFX Support" <noreply@softwarefx.com> schrieb im Newsbeitrag news:diLsCI7kGHA.3060@webserver3.softwarefx.com... > The Fonts property is not of type string. The Fonts property is set as > follows: > > ChartFX1.Fonts(CHART_VALUESFT) = CF_ARIAL Or CF_BOLD > > > -- > Francisco Padron > www.chartfx.com > Quote Link to comment Share on other sites More sharing options...
Software FX Posted June 20, 2006 Report Share Posted June 20, 2006 The Fonts property is used to set only the most common fonts and styles. To have access to all available fonts installed in your computer use the appropriate Font property, in this case, PointLabelsFont. -- Francisco Padron www.chartfx.com "Luzia Baumgartner" <nospam@spam.ch> wrote in message news:fxhI6q7kGHA.3688@webserver3.softwarefx.com... > ... but I have to set the Font "Futura Book". How can I get a code like > CF_ARIAL for that? > > regards, > > Luzia > > > "SoftwareFX Support" <noreply@softwarefx.com> schrieb im Newsbeitrag > news:diLsCI7kGHA.3060@webserver3.softwarefx.com... >> The Fonts property is not of type string. The Fonts property is set as >> follows: >> >> ChartFX1.Fonts(CHART_VALUESFT) = CF_ARIAL Or CF_BOLD >> >> >> -- >> Francisco Padron >> www.chartfx.com >> > > Quote Link to comment Share on other sites More sharing options...
Software FX Posted June 20, 2006 Report Share Posted June 20, 2006 Correction, not PointlabelsFont, for the Top Title is TopFont. -- Francisco Padron www.chartfx.com "Software FX Support" <noreply@softwarefx.com> wrote in message news:iClj0cIlGHA.3060@webserver3.softwarefx.com... > The Fonts property is used to set only the most common fonts and styles. > > To have access to all available fonts installed in your computer use the > appropriate Font property, in this case, PointLabelsFont. > > -- > Francisco Padron > www.chartfx.com > > > "Luzia Baumgartner" <nospam@spam.ch> wrote in message > news:fxhI6q7kGHA.3688@webserver3.softwarefx.com... >> ... but I have to set the Font "Futura Book". How can I get a code like >> CF_ARIAL for that? >> >> regards, >> >> Luzia >> >> >> "SoftwareFX Support" <noreply@softwarefx.com> schrieb im Newsbeitrag >> news:diLsCI7kGHA.3060@webserver3.softwarefx.com... >>> The Fonts property is not of type string. The Fonts property is set as >>> follows: >>> >>> ChartFX1.Fonts(CHART_VALUESFT) = CF_ARIAL Or CF_BOLD >>> >>> >>> -- >>> Francisco Padron >>> www.chartfx.com >>> >> >> > > Quote Link to comment Share on other sites More sharing options...
User (Legacy) Posted June 21, 2006 Author Report Share Posted June 21, 2006 ... but with chart.TopFont = "Futura Book" I get an Error Message, that this Property is not supported.... regards, Luzia "Software FX Support" <noreply@softwarefx.com> schrieb im Newsbeitrag news:jXPuJfIlGHA.3060@webserver3.softwarefx.com... > Correction, not PointlabelsFont, for the Top Title is TopFont. > > -- > Francisco Padron > www.chartfx.com > > > "Software FX Support" <noreply@softwarefx.com> wrote in message > news:iClj0cIlGHA.3060@webserver3.softwarefx.com... >> The Fonts property is used to set only the most common fonts and styles. >> >> To have access to all available fonts installed in your computer use the >> appropriate Font property, in this case, PointLabelsFont. >> >> -- >> Francisco Padron >> www.chartfx.com >> >> >> "Luzia Baumgartner" <nospam@spam.ch> wrote in message >> news:fxhI6q7kGHA.3688@webserver3.softwarefx.com... >>> ... but I have to set the Font "Futura Book". How can I get a code like >>> CF_ARIAL for that? >>> >>> regards, >>> >>> Luzia >>> >>> >>> "SoftwareFX Support" <noreply@softwarefx.com> schrieb im Newsbeitrag >>> news:diLsCI7kGHA.3060@webserver3.softwarefx.com... >>>> The Fonts property is not of type string. The Fonts property is set as >>>> follows: >>>> >>>> ChartFX1.Fonts(CHART_VALUESFT) = CF_ARIAL Or CF_BOLD >>>> >>>> >>>> -- >>>> Francisco Padron >>>> www.chartfx.com >>>> >>> >>> >> >> > > Quote Link to comment Share on other sites More sharing options...
Software FX Posted June 21, 2006 Report Share Posted June 21, 2006 TopFont is NOT a string, is a font: ChartFX1.TopFont.Name = "Futura" -- Francisco Padron www.chartfx.com Quote Link to comment Share on other sites More sharing options...
User (Legacy) Posted June 22, 2006 Author Report Share Posted June 22, 2006 thank you very much, that was it! now it's working. btw: this option is marked as obsolete in the online-help. Its substitute .Fonts(2) (or .Fonts(2).Name) does not work... regards, Luzia "SoftwareFX Support" <noreply@softwarefx.com> schrieb im Newsbeitrag news:26hmXFVlGHA.1788@webserver3.softwarefx.com... > TopFont is NOT a string, is a font: > > ChartFX1.TopFont.Name = "Futura" > > -- > Francisco Padron > www.chartfx.com > 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.