2
Answers

Excel.Application instance

Majid Kamali

Majid Kamali

13y
2.3k
1
Hi.
I am creating a program that gets data from a excel file and writes multiple results in several excel files for printing.
When I want to write the files, how many Excel.Application instance is necessary? I mean can I create an instance of Excel.Application for all of the files or I should create Application instance for each of them?
How about Excel.Workbook?

Thanks
Answers (2)
2
Amit Gupta

Amit Gupta

NA 16.5k 25.7k 7y
@Sundar
 
If client donot want to view any console window to be viewed on the screen then you can go for windows form.
 
Because whenever a console application ran, it shows a black window which might distract the client.
 
For this, change your project output to 'Windows Application' instead of console application.
 
This will let it run on background (without UI).
 
Good Luck! 
Accepted
1
Sundar

Sundar

NA 9.6k 94.5k 7y
Without console App or windows app, the system has to do automatically. I will set the time. Each day by that time, the mail should passed
1
Amit Gupta

Amit Gupta

NA 16.5k 25.7k 7y
Elaborate your word 'Machine learning' in this case.
1
Sundar

Sundar

NA 9.6k 94.5k 7y
Is there any possibility of implementing Machine Learning ? For this ?
1
Sundar

Sundar

NA 9.6k 94.5k 7y
Thank you salman
1
Salman

Salman

NA 2.5k 22.3k 7y
Here Console will never popup each time. It will run everything in background. This is the best way and as per my understanding there is no other way.
thanks. 
1
Sundar

Sundar

NA 9.6k 94.5k 7y
My question is, is there any other way ??? The console should not pop up for each time.
1
Salman

Salman

NA 2.5k 22.3k 7y
Already You Created Console app right. So just create a Schedular and which will run in background.
thanks. 
1
Sundar

Sundar

NA 9.6k 94.5k 7y
Actually I am using task Scheduler for this. I need a better way if any ??. Because, clients does not want to view the console popup at each interval of time. The operatoin should be done automaically in back end 
1
Amit Gupta

Amit Gupta

NA 16.5k 25.7k 7y
You can either use Task Scheduler and set your interval or create a windows service.
 
I recommend to use Task Scheduler for this