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.

Printing a excel file from background

Thread ID:

Created:

Updated:

Platform:

Replies:

74923 Jul 3,2008 05:17 PM Jul 4,2008 04:54 AM Windows Forms 1
loading
Tags: EditControl
Daniel Santos de Carvalho
Asked On July 3, 2008 05:17 PM

Hi,

I would like a help to a little problem in my application.

When the user press the button "Print", the application must search a excel file, in the system folder and print the file. But the event must send the excel file direct to the printer, and it must NOT open. The user must not see or interact with the file.

There is anyway to load and print the excel file without showing it openly in the screen ?


Yavanaarasi G [Syncfusion]
Replied On July 4, 2008 04:54 AM

Hi Daniel,

Essential XlsIO don't have direct support for printing documents.If MS Excel is present on the system, you can launch the process and print the spreadsheet using the below code snippet:


[C#]
//Print an Excel document

System.Diagnostics.Process pr = new System.Diagnostics.Process();

pr.StartInfo.Verb = "Print";

pr.StartInfo.FileName = "Sample.xls";

pr.Start();


Please try this and let me know if this helps.

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.

;