c# - Pass Data into a VSTO Excel Workbook? -


I have found the VSTO Excel Workbook project, which I am using to collect information from a user. This workbook is being started from inside a host application, but I need to pass some parameters in the workbook before opening it, so it shows how to display it and how to display it. What is the best way to do this?

A workbook is a way of passing data that I personally do not really like, But it may be that you are consistent with it. In fact, you set the values ​​for specific cells in the workbook, and then process those values ​​on the event handler of Excel:

  Microsoft.Office.Interop.Excel.Application = excel = New Microsoft.Office.Interop Excel.Application (); Microsoft.Office.Interop.Excel.Workbook wb = excel.Workbooks.Open (file path); Var letter = (Microsoft.Office.Interop.Excel.Worksheet) wb.Worksheets [1]; Var range = sheet.Range ["A1"]; category. Value = "some value";  

Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -