Click here to Skip to main content
15,894,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to write a script to adjust printer setting.Using script component i want to open the excel file that i have placed in the folder and make printing settings and save that file
Posted
v2
Comments
Where is the issue then?
varun_streetScientist 9-Dec-15 6:15am    
i want the to know the script code for doing this change

1 solution

Printer settings are saved in the document. You can easily find out how to do it by making the changes in the Workbook while recording a macro.
 
Share this answer
 
Comments
varun_streetScientist 9-Dec-15 7:30am    
yeah that's true but i want it to do by writing script component..actually i want to do it in SSIS
Richard MacCutchan 9-Dec-15 8:29am    
What does SSIS have to do with Excel files?
varun_streetScientist 10-Dec-15 1:25am    
i want to code the script in C#,i would be thankful if you will help me.To be more precise i am putting my question once again--
i want to write a script to adjust printer setting.Using script component i want to open the excel file that i have placed in the folder and make printing settings and save that file.
e.g--At the time of generating the report from ssrs in excel format there only i want to change the page size.as per my wish i can change the page size.
Richard MacCutchan 10-Dec-15 4:18am    
Well you will still need to do what I suggested above, to find out what the values are and how to set them. You then need to use the Excel Interop features to edit the Excel file from your C# application. But, quite frankly, a VBA macro would be much simpler.
varun_streetScientist 10-Dec-15 8:42am    
if Possible can you please give some piece of code to do the above implementation like how to kick start this

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900