We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Print Preview Excel or Doc

Thread ID:

Created:

Updated:

Platform:

Replies:

75945 Aug 18,2008 02:24 AM Aug 20,2008 06:51 AM Windows Forms 5
loading
Tags: XlsIO
agichen
Asked On August 18, 2008 02:24 AM

sir,
I'm looking for a solution to generate report (is an excel or doc) from database.
I need to preview on the winform. Does XlsIO and DocIO can do this ?

Regards,
agichen



Yavanaarasi G [Syncfusion]
Replied On August 18, 2008 09:14 AM

Hi agichen,

Thank you for your interest in Syncfusion products.

Currently we do not provide support for viewing an excel spreadsheet or document in windows form. As a work around we can view it by using the web browser control. Please refer the below code snippet:


[C#]
//Xls
webBrowser1.Navigate("Sample.xls");

//Doc
webBrowser1.Navigate("Sample.doc");


But without Excel viewer or word viewer we cannot view this.

Here is the sample for your reference:

http://www.syncfusion.com/development/uploads/XlsIO_Win_Navigate_71204069.zip

Please try this and let me know if this helps.

Regards,
G.Yavana




agichen
Replied On August 18, 2008 11:25 AM

Thanks a lot!
another question , does XlsIO and DocIO support non-english filename and non-english content?
I need to work with Chinese (big5) content.

Regards,
Agi



>Hi agichen,

Thank you for your interest in Syncfusion products.

Currently we do not provide support for viewing an excel spreadsheet or document in windows form. As a work around we can view it by using the web browser control. Please refer the below code snippet:


[C#]
//Xls
webBrowser1.Navigate("Sample.xls");

//Doc
webBrowser1.Navigate("Sample.doc");


But without Excel viewer or word viewer we cannot view this.

Here is the sample for your reference:

http://www.syncfusion.com/development/uploads/XlsIO_Win_Navigate_71204069.zip

Please try this and let me know if this helps.

Regards,
G.Yavana






Yavanaarasi G [Syncfusion]
Replied On August 19, 2008 05:54 AM

Hi agichen,

Thank you for your update.

Yes. XlsIO and DocIO provide support for non-english filename and non-english content.Please refer the below code snippet:


[C#]
//XlsIO
IWorksheet sheet = workbook.Worksheets[0];
sheet.Range["A1"].Text = "樣品";
workbook.SaveAs("樣品.xls");

//DocIO
IWParagraph paragraph = section.AddParagraph();
//Insert Text into the paragraph
paragraph.AppendText("樣品");
document.Save("樣品.doc");


Here is the sample for your reference:

http://www.syncfusion.com/development/uploads/XlsIO_Win_Chinesefilename.zip

Please try this and let me know if you have any other questions.

Regards,
G.Yavana


agichen
Replied On August 19, 2008 09:50 AM

thanks a lot.
so good !


Yavanaarasi G [Syncfusion]
Replied On August 20, 2008 06:51 AM

Hi Agichen,

Thank you for your update.

Please let me know if you have any other questions.

Regards,
G.Yavana


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;