User (Legacy) Posted October 11, 2006 Report Share Posted October 11, 2006 Hello. We are using Visual Studio C++ for ChartFX(COM) We are doing something like: CWnd m_ChartFX; Cfx62::_ChartPtr m_pChartFX; // Create and Initialize Dynamic Chart !!! CRect rc; GetClientRect(rc); m_ChartFX.CreateControl(__uuidof(Cfx62::Chart), NULL, WS_VISIBLE, rc, this, m_nID,NULL,NULL,bstrLic /* LICENSE STRING SHOULD GO HERE */ ); // Attach to Chart pointer m_pChartFX = m_ChartFX.GetControlUnknown(); . To show labels: CString sLabel; sLabel.LoadString(nResId); Axis->Label->Insert(nIndex,_bstr_t(sLabel)); Where Axis is type of Cfx62::_Axis* nResId is an id from Language.rc(Visual Studio C++ resource file, which is localized) And again LABELS, which we drawing are OK. (On English Windows 2000 OS they appear in Japanese, because Language.rc has Japanese strings.) The case, which I'm talking about, is: Report is empty (there are nothing to show we are not drawing any labels, because there are no data to show) then reports looks like gray window and "No Data Available" in the middle of report is in English. This string is coming from ChartFX. Is it possible this all happened, because I'm running application under English OS and ChartFX shows this string based on the locale of OS (For example For Windows 2000 - Japanese this string will in Japanese)? Igor Mosesov Link to comment Share on other sites More sharing options...
User (Legacy) Posted October 11, 2006 Author Report Share Posted October 11, 2006 Hello. We are using Visual Studio C++ for ChartFX(COM) We are doing something like: CWnd m_ChartFX; Cfx62::_ChartPtr m_pChartFX; // Create and Initialize Dynamic Chart !!! CRect rc; GetClientRect(rc); m_ChartFX.CreateControl(__uuidof(Cfx62::Chart), NULL, WS_VISIBLE, rc, this, m_nID,NULL,NULL,bstrLic /* LICENSE STRING SHOULD GO HERE */ ); // Attach to Chart pointer m_pChartFX = m_ChartFX.GetControlUnknown(); . To show labels: CString sLabel; sLabel.LoadString(nResId); Axis->Label->Insert(nIndex,_bstr_t(sLabel)); Where Axis is type of Cfx62::_Axis* nResId is an id from Language.rc(Visual Studio C++ resource file, which is localized) And again LABELS, which we drawing are OK. (On English Windows 2000 OS they appear in Japanese, because Language.rc has Japanese strings.) The case, which I'm talking about, is: Report is empty (there are nothing to show we are not drawing any labels, because there are no data to show) then reports looks like gray window and "No Data Available" in the middle of report is in English. This string is coming from ChartFX. Is it possible this all happened, because I'm running application under English OS and ChartFX shows this string based on the locale of OS (For example For Windows 2000 - Japanese this string will in Japanese)? Igor Mosesov Link to comment Share on other sites More sharing options...
Software FX Posted October 11, 2006 Report Share Posted October 11, 2006 Right. I don't see anywhere where you tell CHart FX to be in Japanese. The following KB article should help: Q1901009. Applying Localization Resources for Client Server 6.2 URL: http://support.softwarefx.com/ShowArticle.aspx?Type=KB&Product=CfxCS62&Source=http://support.softwarefx.com/kb/190/1/009.htm?_r=1 -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
Software FX Posted October 11, 2006 Report Share Posted October 11, 2006 Right. I don't see anywhere where you tell CHart FX to be in Japanese. The following KB article should help: Q1901009. Applying Localization Resources for Client Server 6.2 URL: http://support.softwarefx.com/ShowArticle.aspx?Type=KB&Product=CfxCS62&Source=http://support.softwarefx.com/kb/190/1/009.htm?_r=1 -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.