将参数传递到服务器上启用 VSTO 的 Excel 电子表格
我创建了一个 Excel 2010 工作簿项目来自定义一些功能区扩展。它使用网络服务读取数据以预填充表单。我的问题是,当服务器请求工作簿时,如何将一些参数(例如记录 ID)传递给工作簿?
我认为我的情况类似于这个问题,但从未得到解答: 将数据传递到VSTO Excel 工作簿?
I created an Excel 2010 Workbook project with to customize some ribbon extensions. It uses a webservice to read in data to pre-populate the form. My question is, how can I pass in some parameters, for example a record ID, to the workbook when it is requested from the server?
I think my scenario is similar to this question, which was never answered: Pass Data into a VSTO Excel Workbook?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有一种将数据传递到工作簿的方法,我个人不太喜欢,但也许它适合您。基本上,您为工作簿中的特定单元格设置值,然后在 Excel 的事件处理程序中处理这些值:
There is a way of passing data to a workbook which personally I don't really like, but maybe it can suit you. Basically, you set values for specific cells in the workbook, and then process those values in Excel's event handler: