Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel sheet displaying from General field

Status
Not open for further replies.

TomasDill

IS-IT--Management
Sep 2, 2000
703
UA
Hi!

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
vgryn@softserve.lviv.ua
The professional level of programmer could be determined by level of stupidity of his/her bugs
 
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

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top