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