Solved

MsoTextOrientation not declared

Posted on 2004-08-07
3
588 Views
Last Modified: 2008-02-01
I am creating a powerpoint slide from vb .net.  I have it working where it can add a picture, but I wanted to add a text box.  When I use the following line of code, it says that Name MsoTextOrientation is not declared.  What am I missing?

        oSlide.Shapes.AddTextbox(MsoTextOrientation.msoTextOrientationHorizontal, 2, 2, 2, 2)

Here are my imports at the top:

Imports System.Data
Imports Office = Microsoft.Office.Core
Imports PowerPoint = Microsoft.Office.Interop.PowerPoint
Imports System.Drawing
Imports System.Drawing.Printing

Imports System.ComponentModel
Imports System.ServiceProcess
0
Comment
Question by:spmcmorrow
  • 2
3 Comments
 
LVL 7

Expert Comment

by:mdamico
ID: 11743627
oSlide.Shapes.AddTextbox(Office.MsoTextOrientation.msoTextOrientationHorizontal, 2, 2, 2, 2)


0
 
LVL 7

Accepted Solution

by:
mdamico earned 250 total points
ID: 11743633
or change

Imports Office = Microsoft.Office.Core

to

Imports Microsoft.Office.Core

and the original code would work
0
 

Author Comment

by:spmcmorrow
ID: 11744128
thank you
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Variable Event ? 3 27
How to sort a list of objects using an item in an enclosed list 5 46
VB.Net - TypeInitializer Error 25 27
Help with adding DLL file in Windows project 20 31
Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

777 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