Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with MS applications 1

Status
Not open for further replies.

macoleiva

Programmer
Jul 9, 2004
4
GT
Hello Everyone...
I need Help in manipulating ms word from my delphi aplication...
what i need to do is to be able to view MS word, excel and powerpoint documents from my delphi application.
Currently i am using a tolecontainer to do so and it works well... the thing is that i cant let the user print the document.
does any one knows how can i block the print button from the applications???

Thx a lot...
 
Now explain to me why would you want to block the print button if you want the users to be able to print, I dont understand what you are trying to achieve here?

[bobafett] BobbaFet [bobafett]

Everyone has a right to my opinion.
E-mail me at caswegkamp@hotmail.com
 
The users Must not be able to print the documents....
Thats why i need a way to block the printig jobs.
 
Ah ok, my bad then, I misread your post. I'll try out some stuff and let you know what I come up with (can you tell I am bored? ;-) ).

[bobafett] BobbaFet [bobafett]

Everyone has a right to my opinion.
E-mail me at caswegkamp@hotmail.com
 
I presume that you do need to be able to Save it? I disabled the AllowActiveDoc parametre and set AutoActivate to GetFocus and that disabled the Print button but also the save button and some others.

[bobafett] BobbaFet [bobafett]

Everyone has a right to my opinion.
E-mail me at caswegkamp@hotmail.com
 
Kool, Its ok...
in fact thats better.. they should be able only to view the document
So thanks a lot.
 
macoleiva said:
the thing is that i cant let the user print the document.

Please try and be a little less ambiguous when you make a request - this was the reason for BobbaFet's confusion. The above statement can be taken in two ways:
a) I can't work out how to let the user print the document
b) The user must not be allowed to print the document

I'm not trying to be critical for the sake of it, but it is in everyone's interests to be as clear as possible. Posing questions with greater clarity is more likely to generate a quicker and more appropriate response.

Clive [infinity]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"To err is human, but to really foul things up you need a computer."
Paul Ehrlich
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To get the best answers from this forum see: faq102-5096
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top