BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

tOleContainer

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation
View previous topic :: View next topic  
Author Message
Alton Newman
Guest





PostPosted: Mon Dec 15, 2003 11:20 pm    Post subject: tOleContainer Reply with 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
Deborah Pate (TeamB)
Guest





PostPosted: Tue Dec 16, 2003 4:34 pm    Post subject: Re: tOleContainer Reply with quote



< 1) I would rather not open the file for edit
Quote:


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





PostPosted: Tue Dec 16, 2003 11:00 pm    Post subject: Re: tOleContainer Reply with quote



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






PostPosted: Tue Jan 06, 2004 2:47 pm    Post subject: Re: tOleContainer Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.