Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Excel sheet displaying from General field

Excel sheet displaying from General field

Excel sheet displaying from General field


When displaying Sheet either in OLE Bound Control or in the window for General field editing, Excel sheet tries to display all columns at once. This cause it resized inside of the OLE Bound Control box by such way that all cells appear as a very little rectangles and no way to see something in cells. Changing of values of properties OLEBoundControl.Sizable, OLEBoundControl.Stretch, OLEBoundControl.AutoSize, OLEBoundControl.Object.Windows(1).EnableResize did not helped at all.

Does anybody know what to do to display Excel sheet in the OLEBoundControl correctly so it is not resized to the bounds of the OLE control?

Thanks in advance!

Vlad Grynchyshyn, MVP
The professional level of programmer could be determined by level of stupidity of his/her bugs

RE: Excel sheet displaying from General field

Well, I just put an oleboundcontrol on a form and set the control source to a general field with excel spreadsheets on it.  setting the stretch property to 0 gave me a clipped version and 1 isometric or 2 stretch gave me what you were talking about.  I don't see what the problem could be unless you've got something hidden away in your form's code which counteracts what you're trying to do.  You might want to check the value of the stretch property in the debugger if you haven't already tried it.  

Or if you're using VFP 7, maybe something got broke.  I'm just using VFP 6

Dave Dardinger

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close