Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7651817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T11:36:02+00:00 2026-05-31T11:36:02+00:00

I face a problem on my application , I have a long running process

  • 0

I face a problem on my application , I have a long running process , one of its outputs should be an excel file which has to be printed in background .
The process will get a data from the remote server , and it has a predefined excel template then all I have to do to create the excel file and send it to the printer .
I founded the ExcelPackage project and NOPI project which deals with excel files .

How to do that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T11:36:04+00:00Added an answer on May 31, 2026 at 11:36 am

    You can save the excel sheet programmatically and then use p/invoke ShellExecute with the “print” operation and the filename:

    MSDN ShellExecute: http://msdn.microsoft.com/en-us/library/windows/desktop/bb762153(v=vs.85).aspx

    P/Invoke ShellExecute: http://www.pinvoke.net/default.aspx/shell32/ShellExecute.html

    This will call the installed Excel version and tell it to open and print the given file on the default printer. Excel will close automatically after printing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I face the following problem in a cryptographical application: I have given a set
My application has a xml based configuration. It has also a xsd file. Before
In one of the application I am working I have found this code -
I face the following problem. I have two large tables with about 80.000 records
Lets say i have an application ( the details of the application should be
I have been facing the above mentioned problem in my java application that I
I have a WinForms application. the main form is has a lot of controls
I am working on application which should go into android 2.2(Froyo) and android 2.3(GingerBread)
I face a problem when I try to get value from primary table in
I often face the problem of wanting to add additional methods to classes I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.