Jump to content
Software FX Community

Change Font of TopTitle


User (Legacy)

Recommended Posts

Posted

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

Posted

... 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

>

Posted

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

>>

>

>

Posted

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

>>>

>>

>>

>

>

Posted

... 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

>>>>

>>>

>>>

>>

>>

>

>

Posted

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

>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...