Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Basics
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 25th, 2003, 09:21 PM
Registered User
 
Join Date: Dec 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to create MS-Excel which contain chinese fonts

Now, I want to create a Excel file using the object of Excel.Application in asp.
I retrieve field's value from SQL Server 2000(field's value is Traditional Chinese big5, nvarchar type) and fill it in Excel's cell, call [objExcel.ActiveWorkbook.SaveAs Server.MapPath("ExportExcel/"&strFileName)] to generate a new Excel file. but when I open the file, I find content is not displayed properly.
what shall I do? pls help me! thanks in advance.


 
Old December 28th, 2003, 05:05 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 344
Thanks: 0
Thanked 1 Time in 1 Post
Default

The SAVEAS method has a parameter for the code page that you want to use.

 
Old December 29th, 2003, 12:23 AM
Registered User
 
Join Date: Dec 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi guy,
I have tried it, but it seems that it doesn't work... "Encoding" parameter only for saving text files.
see below content from MSDN:

expression.SaveAs(FileName, FileFormat, LockComments, Password, AddToRecentFiles, WritePassword, ReadOnlyRecommended, EmbedTrueTypeFonts, SaveNativePictureFormat, SaveFormsData, SaveAsAOCELetter, Encoding, InsertLineBreaks, AllowSubstitutions, LineEnding, AddBiDiMarks)

Encoding Optional MsoEncoding. The code page, or character set, to use for documents saved as encoded text files. The default is the system code page.


Quote:
quote:Originally posted by Greg Griffiths
 The SAVEAS method has a parameter for the code page that you want to use.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with fonts in MS Access. Hovhannes Access 1 April 20th, 2007 10:45 AM
Create Excel.Chart and Save to MS Access OLE Obj kirkgomez Access VBA 1 December 29th, 2005 08:27 AM
Exporting data from MS Excel sheet to Ms Access ajindal General .NET 1 January 17th, 2005 03:00 AM
Display Chinese from MS Access Database johnman Classic ASP Basics 1 May 25th, 2004 11:37 PM
How to create MS-Excel which contain chinese fonts tiger1978 Excel VBA 0 December 25th, 2003 05:34 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.