 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
aiirii Guest
|
Posted: Thu Jun 26, 2003 7:46 am Post subject: Excel's file PrintPreview with OleContainer |
|
|
I have used this code to operate a Excel's file with OleContainer.
OC: TOleContainer;
Open:
OC.AutoActivate := aaManual;
OC.CreateObjectFromFile('d:aaa.xls',false);
OC.DoVerb(ovPrimary);
Close:
OC.Close;
OC.DestroyObject;
above codes is no problem,but if I use such:
OC.OleObject.ActiveSheet.PrintPreview;
the program seemed was frozen,and I lost my control to this program,and what
I can do is to press "ctrl + alt + del" to end it.and I test as below:
OC.OleObject.ActiveSheet.PrintPreview;
showmessage('here');
and I found that the procedure showmessage never be execute,so,how to
control the PrintPreview and made it return safety?
__________________________________________________________________ aiirii
aiirii ICQ#: 171465210 Current ICQ status: + More ways to contact me
__________________________________________________________________
|
|
| Back to top |
|
 |
Karsten Hassel Guest
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|