473,765 Members | 1,967 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Se lection.SlideRa nge.Shapes.AddC onnector(msoCon nectorStraight,
156#, 456#, 156#, 30#).Select
ActiveWindow.Se lection.ShapeRa nge.Line.EndArr owheadStyle =
msoArrowheadTri angle
ActiveWindow.Se lection.SlideRa nge.Shapes.AddC onnector(msoCon nectorElbow,
234#, 84#, 192#, 60#).Select
With ActiveWindow.Se lection.ShapeRa nge
.Line.BeginArro wheadStyle = msoArrowheadTri angle
.Line.EndArrowh eadStyle = msoArrowheadTri angle
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*********@hot mail.com
or post it rite here...

thx

Regards

Adeel...
Jul 21 '05 #1
1 2874
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***@discussi ons.microsoft.c om> wrote in message
news:A3******** *************** ***********@mic rosoft.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.Se lection.SlideRa nge.Shapes.AddC onnector(msoCon nectorStraight, 156#, 456#, 156#, 30#).Select
ActiveWindow.Se lection.ShapeRa nge.Line.EndArr owheadStyle =
msoArrowheadTri angle
ActiveWindow.Se lection.SlideRa nge.Shapes.AddC onnector(msoCon nectorElbow, 234#, 84#, 192#, 60#).Select
With ActiveWindow.Se lection.ShapeRa nge
.Line.BeginArro wheadStyle = msoArrowheadTri angle
.Line.EndArrowh eadStyle = msoArrowheadTri angle
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*********@hot mail.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
3410
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 because sometimes Powerpoint is remaining running (powerpnt.exe in Task Manager). One action of my smart tags calls InsertChart (code below). The designated line causes powerpoint to remain running even after the user has manually closed the...
2
10213
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 the F1 key. In other words, I want to use the powerpoint presentation for my help system. I am calling the SlideShow from the applications menu, and it works great; however, the same techniques are not working for selecting individual slides. ...
0
2556
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 webapp runs find but when I try to open powerpoint in my asp.net code I get an error
6
1394
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, Whenever I'm calling the (.aspx) pages using the dll more than once simultaneously, both results in garbage. When called once it is perfect in result. 2. The memory is not being released in web application of the dll even after finishing properly with...
6
5068
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 would I need to do? Could anyone provide me with a brief sample "Hello World"? kind regards
8
7077
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 = Office.MsoTriState.msoTrue pp.WindowState = PowerPoint.PpWindowState.ppWindowMinimized Application.DoEvents()
1
402
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 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...
20
3521
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 just need to be pointed toward a resource for accessing the DOM this way. I must be searching on the wrong keywords because so far I can't find anything helpful, even on Microsoft's site. My development environment is Visual Web developer...
9
7998
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 of automation object that would be created server side and then a link provided for the user to download. However, the user wants to be able to see the chart being built up on
0
9398
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9951
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8831
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7378
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5421
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3924
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3531
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2805
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.