1. You need to have Chinese font on the printer, use Zebra font downloader application to install.

2. The is a sample code to print Chinese characters:

^XA
^CI28
^A@N,50,50,E:SIMSUN.FNT
^FO50,110^FDChinese 中文字符^FS
^XZ

Another format can be:

^XA
^CI28
^CWA,E:SIMSUN.FNT
^FO240,30^AAN,36,36^FDChinese 中文字符^FS
^XZ

Use CW command to change font, so that you need only to specify the font for all the content.

Hope it helps.

{ 0 comments }

I searched the web seems no answer for this topic, so i create a style to hide the button:

<Style TargetType="{x:Type mui:ModernButton}"> 
    <Style.Triggers> 
        <Trigger Property="Command" Value="NavigationCommands.BrowseBack"> 
            <Setter Property="Visibility" Value="Collapsed" /> 
        </Trigger> 
    </Style.Triggers> 
</Style> 

Hope it helps. Smile

{ 1 comment }

Running Mantis Bug Tracker on MS Sql Server with Unicode Supported

by Weijie JIN

Mantis is a great issue tracking system. But you may encounter some difficulties when you try to run it on Microsoft sql server and with Unicode(like my scenario, Chinese). Here’s the solution: When you try to deploy the MantisBT using build-in install page, you may encounter errors and cannot continue, so I modified the sql, […]

Read the full article →

Pluralsight Continuous Play User Scripts

by Weijie JIN

By default, it will stop after each module when you studying on Pluralsight. If you want to save the mouse click to automatically view the next module. You can use the following methods. Install Greasemonkey addon for firefox: https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/ Install my user scripts: http://userscripts.org/scripts/show/485571 Now when you reach each end of module, the next module […]

Read the full article →

Convert Boot to VHD Hyper-V VM to VMWare Virtual Machine

by Weijie JIN

If you have Boot to VHD VM (which leverage all your hardware) and want to convert it to a VMWare virtual machine, please follow the steps: Download WinImage and install it. Convert the vhd disk to vmdk following the WinImage instruction. Create a new VMWare VM and using the converted disk. You cannot boot the […]

Read the full article →

Fix “Access is denied” issue while installing Sql Server 2008 R2

by Weijie JIN

While installing several machine with Sql Server 2008 R2, I encounter the same problem: “Access is denied”. Apparently this error is related to the account privilege. Here’s the steps to fix this issue: Log on to the computer as a user who has administrative credentials. Click Start, click Run, type Control admintools, and then click […]

Read the full article →

ASP.Net Application Development and Deployment Configuration Best Practices

by Weijie JIN

Do you have the time when you are deploying your application, first you compile, copy the files to the server, change the web.config on the server. Next time, you want to deploy again, compare the server’s configuration to the development one to figure out which ones should be changed? If you experienced the situation above, […]

Read the full article →

Fix Hyper-V Time Synchronization Issue

by Weijie JIN

We’re running Windows Server 2008 R2 for host and Windows Server 2008 R2 as a virtual machine using Hyper-V. For some reason, the time synchronization doesn’t work well. No matter we disable the hyper-v time synchronization option on the host side or enable it. After the gap is more than 5 seconds, some issues will […]

Read the full article →

Optimize WordPress Speed Hosted on IIS

by Weijie JIN

If you’re interested in getting high score in ySlow or PageSpeed for your blog and your blog happens being hosted on IIS of Windows Server, here are some tips: 1. Enable gzip a. To enable gzip on IIS, first add Dynamic Content Compression Role Services for IIS. b. If your site is running with Application […]

Read the full article →

Fix “The invoked member is not supported in a dynamic assembly.” Error in Tracing and Caching Provider Wrappers for Entity Framework

by Weijie JIN

When using Tracing and Caching Provider Wrappers for Entity Framework in ASP.Net MVC project, you may encounter the following error: The invoked member is not supported in a dynamic assembly.   This error is caused by GetManifestResourceStream method in Assembly does not support dynamic assembly. To fix this error, go to line 184 @ EFProviderWrapperToolkit\EntityConnectionWrapperUtils.cs,  […]

Read the full article →