Hi Mr.Rao
When Windows user name is English name, preview report work fine.
But Chinese name, not work and got error message below:
HB_CDPSELECT( "UTF8" )
nageswaragunupudi wrote:Have you included this code in your main program?
- Code: Select all Expand view
HB_CDPSELECT( "UTF8" )
If not please include this and let is know if the problem is resolved
HB_LangSelect( "zh" )
HB_SetCodePage( "UTF8" )
HB_CDPSELECT( "UTF8" )
Fw_SetUnicode( .T. )
nageswaragunupudi wrote:This is happening because our metafile functions like create, open, etc are not supporting Unicode file path names.
These functions are now made Unicode compatible.
With this you will not face this problem from the next version of FWH2208 to be released.
For the present you need to bear with the problem.
if ! ::lMeta
::hDcOut = ::hDC
else
::aMeta = {}
::cDir = GetEnv( "TEMP" )
if Empty( ::cDir )
::cDir = GetEnv( "TMP" )
endif
if Right( ::cDir, 1 ) == "\"
::cDir = SubStr( ::cDir, 1, Len( ::cDir ) - 1 )
endif
if ! Empty( ::cDir )
if ! lIsDir( ::cDir )
::cDir = GetWinDir()
endif
else
::cDir := GetWinDir()
endif
endif
if ::lMeta .and. ( ( ::lUseHaruPDF .and. IsHaruLinked() ) .or. ::lNativeWord )
::aCallLog := {}
else
endif
::cDir := "<some directory in pure English>" // <-- Insert here
if ::lMeta .and. ........
nageswaragunupudi wrote:Till then, if you like, you can make a small patch in printer.prg
Please see this code in METHOD new()
- Code: Select all Expand view
if ! ::lMeta
::hDcOut = ::hDC
else
::aMeta = {}
::cDir = GetEnv( "TEMP" )
if Empty( ::cDir )
::cDir = GetEnv( "TMP" )
endif
if Right( ::cDir, 1 ) == "\"
::cDir = SubStr( ::cDir, 1, Len( ::cDir ) - 1 )
endif
if ! Empty( ::cDir )
if ! lIsDir( ::cDir )
::cDir = GetWinDir()
endif
else
::cDir := GetWinDir()
endif
endif
if ::lMeta .and. ( ( ::lUseHaruPDF .and. IsHaruLinked() ) .or. ::lNativeWord )
::aCallLog := {}
else
Please add one line between "endif" and "if ::lMeta"
like this:
- Code: Select all Expand view
endif
::cDir := "<some directory in pure English>" // <-- Insert here
if ::lMeta .and. ........
You choose some existing directory name which is in English, where the user has rights to create files.
Do not include "\" at the end.
nageswaragunupudi wrote:May I know your current FWH version?
Are you planning to upgrade?
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 92 guests