473,387 Members | 1,520 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Office AutoShapes in VB?

Hello all, and thanks in advance for any help.

I've inherited a PowerPoint application that needs some serious
retooling. It consists of one slide depicting a well and about 2
dozen text boxes that display fields from a "Well Construction" table
in a database. It hits a database and offers a user interface via VBA
code.

Currently, it only shows data. I want it to also be able to enter
data.

The natural way to do this would be to start in the top-right corner
and, using a TabIndex property, allow the user to cycle through all
fields in a logical order, entering data in each field.

Of course there's a snag-- from all my internet research, there's no
way to set anything like good ol' VB's TabIndex property for textboxes
on a PP slide. The VBA editor just doesn't list any proerties like
it.

This and other clunkiness makes me want to rebuild the program as a
stand-alone VB application. (Getting access to certain dialog boxes
is another reason).

This would solve all my problems except that I need the detail of the
PP slide-- namely the AutoShapes-generated diagram of the well. I
know I can save the slide as an image (.gif, jpeg) and then use a
picturebox to display that image in my VB program, but it never looks
as good as the original. (The diagram utilizes lots of textures and
shading.) It becomes even more fuzzy upon printing the form, which is
something this new VB app will need to do.

I know VB offers the shape control, but the limited fill styles don't
suit my needs.

So.... is there any way to get that AutoShape object that exists in
PowerPoint, Word, etc, onto a pure VB form? Some component or
reference I can add?

Thanks,

--E Harris
Jul 17 '05 #1
2 3183
- Start Visual Basic
- Click 'Project' - 'Components'
- Click on 'Insertable objects'

I'm sure you'll find here wat you need.
"E Harris" <re******@hotmail.com> wrote in message
news:15*************************@posting.google.co m...
Hello all, and thanks in advance for any help.

I've inherited a PowerPoint application that needs some serious
retooling. It consists of one slide depicting a well and about 2
dozen text boxes that display fields from a "Well Construction" table
in a database. It hits a database and offers a user interface via VBA
code.

Currently, it only shows data. I want it to also be able to enter
data.

The natural way to do this would be to start in the top-right corner
and, using a TabIndex property, allow the user to cycle through all
fields in a logical order, entering data in each field.

Of course there's a snag-- from all my internet research, there's no
way to set anything like good ol' VB's TabIndex property for textboxes
on a PP slide. The VBA editor just doesn't list any proerties like
it.

This and other clunkiness makes me want to rebuild the program as a
stand-alone VB application. (Getting access to certain dialog boxes
is another reason).

This would solve all my problems except that I need the detail of the
PP slide-- namely the AutoShapes-generated diagram of the well. I
know I can save the slide as an image (.gif, jpeg) and then use a
picturebox to display that image in my VB program, but it never looks
as good as the original. (The diagram utilizes lots of textures and
shading.) It becomes even more fuzzy upon printing the form, which is
something this new VB app will need to do.

I know VB offers the shape control, but the limited fill styles don't
suit my needs.

So.... is there any way to get that AutoShape object that exists in
PowerPoint, Word, etc, onto a pure VB form? Some component or
reference I can add?

Thanks,

--E Harris

Jul 17 '05 #2
Thanks Ronald, but I had already tried that.

Don't thing anything that I think would be Office AutoShapes.

Thanks anyway.
"Ronald" <Ro****@nodom.nl> wrote in message news:<Yr**********************@amsnews02.chello.co m>...
- Start Visual Basic
- Click 'Project' - 'Components'
- Click on 'Insertable objects'

I'm sure you'll find here wat you need.
"E Harris" <re******@hotmail.com> wrote in message
news:15*************************@posting.google.co m...
Hello all, and thanks in advance for any help.

I've inherited a PowerPoint application that needs some serious
retooling. It consists of one slide depicting a well and about 2
dozen text boxes that display fields from a "Well Construction" table
in a database. It hits a database and offers a user interface via VBA
code.

Currently, it only shows data. I want it to also be able to enter
data.

The natural way to do this would be to start in the top-right corner
and, using a TabIndex property, allow the user to cycle through all
fields in a logical order, entering data in each field.

Of course there's a snag-- from all my internet research, there's no
way to set anything like good ol' VB's TabIndex property for textboxes
on a PP slide. The VBA editor just doesn't list any proerties like
it.

This and other clunkiness makes me want to rebuild the program as a
stand-alone VB application. (Getting access to certain dialog boxes
is another reason).

This would solve all my problems except that I need the detail of the
PP slide-- namely the AutoShapes-generated diagram of the well. I
know I can save the slide as an image (.gif, jpeg) and then use a
picturebox to display that image in my VB program, but it never looks
as good as the original. (The diagram utilizes lots of textures and
shading.) It becomes even more fuzzy upon printing the form, which is
something this new VB app will need to do.

I know VB offers the shape control, but the limited fill styles don't
suit my needs.

So.... is there any way to get that AutoShape object that exists in
PowerPoint, Word, etc, onto a pure VB form? Some component or
reference I can add?

Thanks,

--E Harris

Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Chuck Arney | last post by:
After installing Office 2003 PRO and attempting to run SETUP to install the Visual Studio Tools for Office version 2003, I get the error message "Your computer must have Microsoft Office...
1
by: zfeld | last post by:
1. Where do I get the Office 2003 PIAs? On the MSDN download site there are only downloads for XP office PIAs. Do they automatically get installed to the GAC with the installation of office 2003? ...
0
by: Yeongja_Choi | last post by:
How Dare Could America Industrial Property Office Be In Conspiracy With Jungang International Patent Office To Make An Extravagant International Crime ? Currently a Korean party now holds the...
4
by: J-T | last post by:
I'm trying to read an excell file in my .Net application using Office XP Primary Interop Assemblies (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnoxpta/html/odc_oxppias.asp)....
2
by: William LaMartin | last post by:
I have created a program that allows for the automation of things in Word documents, like changing the values of DocVariables and the links to Excel Sheets. I did it using interoperoperatability,...
6
by: Luke Vogel | last post by:
Hi all ... could someone point me in the right direction for programming office applications (specifically excel) using vb.net? Can vb.net replace or enhance VBA that comes with the office suite?...
5
by: Michael Russell | last post by:
Hi all, Using C#, I've created a simple wrapper class for using Excel. I have Office Pro 2003 installed on my devel machine. The wrapper class works great, reading and writing to/from Excel. ...
2
by: JC | last post by:
Anybody knows what problem has this code? I think, in the Garbage Collector? You know the Solution? The program in the test's case, whit 350 contacts, run OK before number 86. The error is a...
4
by: amolbehl | last post by:
Hi, Can anyone tell me how to add AUTOSHAPES to excel via VB Code???
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.