As title, I want to Excel directly displayed in the form of VB.NET, check some information, said that can be, but never use, but could not find the instance, please help to provide a great god, thank you!
CodePudding user response:
Excel can be turned with HTML, then that can display
CodePudding user response:
reference 1st floor it_gz_xi response: Excel can be turned with HTML, and then that can display the Please give examples, thank you! CodePudding user response:
Just show very simple Can be done using NPOI Excel HTML, then load the HTML in the Webbrowser, NPOI have a transform class NPOI. SS. The Converter under ExcelToHtmlConverter Please don't get into the habit of stretch out his hand to the source code, They may need not spend half an hour to write, CodePudding user response:
The reference 3 floor it_gz_xi response: just show very simple Can be done using NPOI Excel HTML, then load the HTML in the Webbrowser, NPOI have a transform class NPOI. SS. The Converter under ExcelToHtmlConverter Please don't get into the habit of stretch out his hand to the source code, They may need not spend half an hour to write it, Not I stretched out his hand to the code, just what you said above I have no contact with, I where to write up? I think this problem should be easy to, for instance I'm sure you can't use directly, also should study ~ CodePudding user response:
I just provide one solution for your reference: https://blog.csdn.net/it_gz_xi/article/details/98040319 There are many other methods of CodePudding user response:
This to have not used, the old version, ms - CSS compatibility is, it is a new XML, is also has a web office, CodePudding user response:
Before using VB6, using VB6 can implement page fill out a form, use VB.NET now feel the grammar is different, VB6 before the statement cannot be universal, the along while still won't do, or to consult everybody master it, To achieve this functionality, I use VB.NET to write a desktop application, inside put a name is webbrowser1 controls, use this webbrowser1 control to open the baidu page, I clicked on a button, can enter a few words in baidu search box, such as "how do steamed bread", please everybody to give directions, how to input code, I can so in VB6 Webbrowser1. Document. GetElementById (" kw "). The Value="https://bbs.csdn.net/topics/how steamed bread" But not in the VB.NET, always an error, ask each ace to give directions to the younger brother, this statement how to input in VB.NET, thank you, Attachment 1: Baidu search box code was the CodePudding user response: Information to what you see is N years ago, embedded ole Enclosing webBrowser1. Navigate (" d: \ \ XXX. XLS ", false); This way is too old, and the problem is more, can temporarily use, formal project is not recommended, too many problems CodePudding user response:
Webbrowser1. Document. GetElementById (" kw "). The setattribute (" value ", "how do steamed bread") CodePudding user response:
Vb.net quoted office excel components, and then read the working table of contents, and then want to import to which controls can, Microsoft his father to the best of components, My demo:https://download.csdn.net/download/aguangkj/10824830 instance can reference