PDA

Click to See Complete Forum and Search --> : adding scrollbars to OLE control


abhijitv
Jun 27th, 2000, 12:16 AM
I am trying to open doc files ,xls files and powerpoint files in OLE control.when we specify a filename the file definitely opens in the OLE control ,but if the sie of the contro is smal one cannot view thw entire file unless he manages to attach a scroll bar to the OLE ? if anyone can suggest the code I will be grateful
my e-mail id is abhijitv@hotmail.com

Syl
Sep 5th, 2000, 05:18 AM
hi, I try to do the same and I have only partial solution to it. As OLE Control has a .SizeMode property. This property may have 4 values:

vbOLESizeClip (0) - Object's image is clipped by the OLE container control's borders

vbOLESizeStretch (1) - Object's image is sized to fill the OLE container control

vbOLESizeAutoSize (2) - OLE container control is automatically resized to display the entire object

vbOLESizeZoom (3) - Object's image is stretched but in proportion

The last one, vbOLESizeZoom is quite useful, but I know it's not enough - scroll bars would be the best solution.
Can anyone add scrollbars to an OLE control? Please help!

Syl
Sep 14th, 2000, 11:28 AM
hi,

isn't there anybody who can help us?

Is it possible to add scrollbars to an OLE container control?

Or perhaps can someone do the following thing? How can I make a document in an OLE control to be of certain size? For example, 74% of original size.

Please, please, please, help!

Best wishes,
Syl