473,383 Members | 1,846 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,383 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 2848
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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:
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.