Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

MsoTextOrientation not declared

Posted on 2004-08-07
3
Medium Priority
?
604 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
[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
  • 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 1000 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

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

618 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