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. Image for the cookie policy date
close icon

Print Preview Excel or Doc

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



5 Replies

YG Yavanaarasi G Syncfusion Team August 18, 2008 01:14 PM UTC

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





AG agichen August 18, 2008 03:25 PM UTC

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







YG Yavanaarasi G Syncfusion Team August 19, 2008 09:54 AM UTC

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



AG agichen August 19, 2008 01:50 PM UTC

thanks a lot.
so good !



YG Yavanaarasi G Syncfusion Team August 20, 2008 10:51 AM UTC

Hi Agichen,

Thank you for your update.

Please let me know if you have any other questions.

Regards,
G.Yavana


Loader.
Live Chat Icon For mobile
Up arrow icon