471,325 Members | 1,400 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

using PowerPoint Object (COM Component) in .NET

Hello, This is Adeel! Well i'm a software developer here in Pakistan working
on Microsoft C#. Can you u plz help me out i have a problem in creating an
ARROW-CONNECTOR SHAPE using Microsoft PowerPoint Object through Code. I'm
generating a Dynamic Presentation from my Application. Looking forward
towards ur Reply..
Actually i do have a Code for VB6 that generates it but i am unable to find
it in .NET coz these COM component are wrapped when accessed from .NET its
hard to find search these Object in it.

Sample Code
---------------

ActiveWindow.Selection.SlideRange.Shapes.AddConnec tor(msoConnectorStraight,
156#, 456#, 156#, 30#).Select
ActiveWindow.Selection.ShapeRange.Line.EndArrowhea dStyle =
msoArrowheadTriangle
ActiveWindow.Selection.SlideRange.Shapes.AddConnec tor(msoConnectorElbow,
234#, 84#, 192#, 60#).Select
With ActiveWindow.Selection.ShapeRange
.Line.BeginArrowheadStyle = msoArrowheadTriangle
.Line.EndArrowheadStyle = msoArrowheadTriangle
End With

If anyone have an idea about this that how to write relevant code in C# or
VB.NET so plzzz help me out.... or u can reply me at bh*********@hotmail.com
or post it rite here...

thx

Regards

Adeel...
Jul 21 '05 #1
1 2748
Yaar,

This doesnt seem to be a VB6.0 code, but VBA. If you have the code that
accesses powerpoint objects from a VB 6.0 Application, on going through the
code you may find that an instance of the powerpoint application has been
made as the first step.I think you have to follow the same approach once
again in VB.Net or C#. Add a reference to the powerpoint object library.
Create an instance of the powerpoint application object and then whichever
object that you need as per your requirement. The sample VBA code you have
given here is one which may work, but with slight modifications since this
has been written to run from within the powerpoint applicaiton as far as i
could find. The MSDN is a gr8 help in this regard, friend. :)

regards
Sujith.S Varier

"Adeel" <Ad***@discussions.microsoft.com> wrote in message
news:A3**********************************@microsof t.com...
Hello, This is Adeel! Well i'm a software developer here in Pakistan working on Microsoft C#. Can you u plz help me out i have a problem in creating an
ARROW-CONNECTOR SHAPE using Microsoft PowerPoint Object through Code. I'm
generating a Dynamic Presentation from my Application. Looking forward
towards ur Reply..
Actually i do have a Code for VB6 that generates it but i am unable to find it in .NET coz these COM component are wrapped when accessed from .NET its hard to find search these Object in it.

Sample Code
---------------

ActiveWindow.Selection.SlideRange.Shapes.AddConnec tor(msoConnectorStraight, 156#, 456#, 156#, 30#).Select
ActiveWindow.Selection.ShapeRange.Line.EndArrowhea dStyle =
msoArrowheadTriangle
ActiveWindow.Selection.SlideRange.Shapes.AddConnec tor(msoConnectorElbow, 234#, 84#, 192#, 60#).Select
With ActiveWindow.Selection.ShapeRange
.Line.BeginArrowheadStyle = msoArrowheadTriangle
.Line.EndArrowheadStyle = msoArrowheadTriangle
End With

If anyone have an idea about this that how to write relevant code in C# or VB.NET so plzzz help me out.... or u can reply me at bh*********@hotmail.com or post it rite here...

thx

Regards

Adeel...

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by C Williams | last post: by
2 posts views Thread by WillRead | last post: by
reply views Thread by Marc Eggenberger | last post: by
6 posts views Thread by Amitava Sengupta | last post: by
6 posts views Thread by Oliver Drobnik | last post: by
9 posts views Thread by MattC | last post: by

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.