Home > Back-end >  When using OleContainer operation Excel cannot PrintPreview, tip does not support this method
When using OleContainer operation Excel cannot PrintPreview, tip does not support this method

Time:10-24

 

OleContainer1. CreateObjectFromFile (ExtractFilePath (Application. ExeName) + 'Book1. XLS ", false);

OleContainer1. Visible:=true;

OleContainer1. OleObject. Application. ActiveSheet. PrintPreview;


Run times wrong, tip does not support this method

Combined with the following statement, or an error:
 
Var
Excel: variant;
Excel:=GetActiveOleObject (' excel. Application);

Excel. ActiveSheet. PrintPreview;


Only without container, to excel in the form is displayed outside just can print preview, seems to use OleContainer operation of the excel, don't allow outside the container according to the form, so, whether in preview window shows the container (also can be another container) or some other way to print preview can also, don't know what method? Because really don't want to display an Excel in external

Please tell master! Be urgent!!!!

CodePudding user response:

No one see it? Still no one encountered such a problem? His first bumps

CodePudding user response:

I also want to know, have superior know?
  • Related