Solved

Ole-Object, Paint, default size.

Posted on 2002-07-26
4
379 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

691 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