Solved

Ole-Object, Paint, default size.

Posted on 2002-07-26
4
318 Views
Last Modified: 2006-11-17
experts,
 i am trying to use an Ole bound control on my form. I want it to be of class Paint.Pictre when the form opens up.
 I do the following in the Form_load() event.
 
    Me.OleCtl.Class = "Paint.Picture"
    Me.OleCtl.OLETypeAllowed = acOLEEmbedded
    Me.OleCtl.Action = acOLECreateEmbed

 This works good. and i get to see the Paint obj in the control when i open the form.

Problem -
 I would like to know a way to control the default size of the Paint document inside this control. The size of my ole control frame (on the form) is fixed while the default size that the paint document takes inside this frame is much bigger and results in a clipped view of the document.(and results in showing up scroll bars).

  Is there a way to use the SourceItem property ? just a possible clue. Usually i read 'refer the Ole server's documentation' but dont know where to find one for Paint.

 Please help.
regds
0
Comment
Question by:tubelight
4 Comments
 
LVL 5

Expert Comment

by:funke
Comment Utility
set the "size mode" property to the setting you want - I think there are three settings - you can test it by setting it in the properties window and then opening your form
0
 

Author Comment

by:tubelight
Comment Utility
funke,
thx, but size mode property changes the size of the 'window' in which the paint document is contained. But has no effect on the 'canvas' of the Paint image (document).
I am not sure if this is possible, easily.
How and where do i get information on the Paint.Picture Object ?
0
 
LVL 54

Expert Comment

by:nico5038
Comment Utility

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
 - PAQ'd and pts refunded
Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

Nic;o)
0
 

Accepted Solution

by:
ComTech earned 0 total points
Comment Utility
This question will be placed in PAQ and points refunded.

Best regards,
ComTech
Community Support
Administrator @ EE
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now