 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Alton Newman Guest
|
Posted: Mon Dec 15, 2003 11:20 pm Post subject: tOleContainer |
|
|
I am attempting to use tOleContainer in my Delphi 7 app to open up a (Word)
window to preview reports. I can open up the report file in my alClient
aligned panel, but I have several shortcomings with it:
1) I would rather not open the file for edit (ovShow), but I can not get the
report to scroll (even when using tScrollBox).
2) I can not get the edit screen to refresh when resizing the window. The
parent panel is locked. The preview/browse window underneath resizes.
3) Can I get rid of the icon toolbar?
4) Can I open the file for read-only? (not too important)
----------------------------------
Alton Newman
[email]anewman (AT) texaspepper (DOT) com[/email]
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system ([url]http://www.grisoft.com)[/url].
Version: 6.0.542 / Virus Database: 336 - Release Date: 11/18/2003
|
|
| Back to top |
|
 |
Deborah Pate (TeamB) Guest
|
Posted: Tue Dec 16, 2003 4:34 pm Post subject: Re: tOleContainer |
|
|
<
1) I would rather not open the file for edit
If you don't want the user to edit it, and you don't want
toolbars, I'd suspect a TOleContainer is not the way to go.
There's a free Word viewer that you can download from MS,
which might be better; otherwise you could use the
TWebBrowser, which would not show the toolbars.
--
Deborah Pate (TeamB) http://delphi-jedi.org
TeamB don't see posts sent via Google or ISPs
Use the real Borland server: newsgroups.borland.com
http://www.borland.com/newsgroups/genl_faqs.html
|
|
| Back to top |
|
 |
Alton Newman Guest
|
Posted: Tue Dec 16, 2003 11:00 pm Post subject: Re: tOleContainer |
|
|
I had already been using tWebBrowser for previewing HTML reports (my user
has several output options) and did not realize that it was so versatile!
You know, the component name sells it short. This will fix a lot for me.
Thank you so much!
A couple of addition questions ...
Is there any way to turn off the CSV association with a spreadsheet (short
of removing it from the registry or renaming the file)? I would rather view
it as a text file and not as a spreadsheet.
Is there any way to remove the 4 "view" buttons (Normal, Web, Print,
Outline) when viewing a RTF/doc file?
----------------------------------
Alton Newman
[email]anewman (AT) texaspepper (DOT) com[/email]
"Deborah Pate (TeamB)" <d.pate (AT) blueyonder (DOT) co.not-this-bit.uk> wrote in
message news:VA.00001dee.00be8f05 (AT) blueyonder (DOT) co.not-this-bit.uk...
| Quote: | Alton Newman:
1) I would rather not open the file for edit
If you don't want the user to edit it, and you don't want
toolbars, I'd suspect a TOleContainer is not the way to go.
There's a free Word viewer that you can download from MS,
which might be better; otherwise you could use the
TWebBrowser, which would not show the toolbars.
--
Deborah Pate (TeamB) http://delphi-jedi.org
TeamB don't see posts sent via Google or ISPs
Use the real Borland server: newsgroups.borland.com
http://www.borland.com/newsgroups/genl_faqs.html
|
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system ([url]http://www.grisoft.com)[/url].
Version: 6.0.542 / Virus Database: 336 - Release Date: 11/18/2003
|
|
| Back to top |
|
 |
Guest
|
Posted: Tue Jan 06, 2004 2:47 pm Post subject: Re: tOleContainer |
|
|
I experience the same problems (2 & 3) .. i do want to edit the file!
The olecontainer (showing word) refreshes badly when the underlying panel is
resized.
I cannot find a workaround. I do not want the word toolbars to hide when the
olecontainer looses focus. (disable would be fine)
Anybody any ideas?
Regards,
Koen
"Alton Newman" <anewman (AT) texaspepper (DOT) com> wrote
| Quote: | I am attempting to use tOleContainer in my Delphi 7 app to open up a
(Word)
window to preview reports. I can open up the report file in my alClient
aligned panel, but I have several shortcomings with it:
1) I would rather not open the file for edit (ovShow), but I can not get
the
report to scroll (even when using tScrollBox).
2) I can not get the edit screen to refresh when resizing the window. The
parent panel is locked. The preview/browse window underneath resizes.
3) Can I get rid of the icon toolbar?
4) Can I open the file for read-only? (not too important)
----------------------------------
Alton Newman
[email]anewman (AT) texaspepper (DOT) com[/email]
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system ([url]http://www.grisoft.com)[/url].
Version: 6.0.542 / Virus Database: 336 - Release Date: 11/18/2003
|
|
|
| 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
|
|