Solved

Ole-Object, Paint, default size.

Posted on 2002-07-26
4
343 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
ID: 7181071
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
ID: 7181234
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
ID: 7281933

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
ID: 7315536
This question will be placed in PAQ and points refunded.

Best regards,
ComTech
Community Support
Administrator @ EE
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Some sers suddenly getting error popup msg 28 86
SQL - Cumulating field values to one field 5 19
Reference Controls on subforms 7 27
Access Open Report with SQL Parameter 11 29
In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

813 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

17 Experts available now in Live!

Get 1:1 Help Now