473,216 Members | 2,074 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,216 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 2838
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: C Williams | last post by:
Hi, I am writing some VB.NET code that compiles to a dll. There is some code within it that manipulates Powerpoint 2003. The dll I am writing is for smart tags, and I am having trouble...
2
by: WillRead | last post by:
I have a VB.Net application and a PowerPoint presentation explaining how each form in the application works, etc.. I would like to select and display the slide appropriate for each form by pressing...
0
by: Marc Eggenberger | last post by:
Hi there. I have an webapp (asp.net) which should use powerpoint to create a presentation and then send that presentation to the user. I'm using VS2003 and Office2003 (project req.). The...
6
by: Amitava Sengupta | last post by:
Is there any issue in using COM component in web applications. The problem I'm facing are 1. Though the dll is using non-static member variables which are being instantiated on each call,...
6
by: Oliver Drobnik | last post by:
Hi, I would like to write a Control in vb.net that I would be able to embed in a Powerpoint presentation to display custom data. Nothing overly fancy. Is this possible? (COM Interop?) What...
8
by: Rut | last post by:
Does anyone know how to start powerpoint from vb.net without the ppt screen appearing. I want to keep it hidden? Using this code: Try pp = New PowerPoint.Application pp.Visible =...
1
by: Adeel | last post by:
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...
20
by: Randall Arnold | last post by:
I've got an asp.net page that dynamically generates an html table on the server side. On the client side, I need to copy the rendered table to the clipboard programmatically (using vbscript). I...
9
by: MattC | last post by:
Hi, Not sure if this is the correct forum, so apologies in advance, if it's not. I have a requirement to dynamically generate a powerpoint slide via a webpage. My first thought was some knid...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.