Home > Software engineering >  Out with the ole control office excel objects displayed in the menu call the inside of the form of t
Out with the ole control office excel objects displayed in the menu call the inside of the form of t

Time:10-11

Thank you very much for great god help for various cases code

CodePudding user response:

OleContainer1 - & gt; DestroyObject ();
OleContainer1 - & gt; CreateObjectFromFile (" C: \ \ test. XLS ", true);
OleContainer1 - & gt; DoVerb (0);
OleContainer1 - & gt; OleObject. OlePropertyGet (" CommandBars ", "Standard"). OlePropertySet (" Visible ", false);//hide toolbar
OleContainer1 - & gt; OleObject. OlePropertyGet (" CommandBars ", "Formatting"). OlePropertySet (" Visible ", false);//hide the format toolbar
  • Related