Hi,
Is there a way to dynamically generate a powerpoint file from scratch in C++ .NET? I'm running VS2008 and from what I've found supposedly Visual Tools for Office is already installed. The problem is I can't access any namespaces (e.g. PowerPoint, Microsoft.Offic e.Core, etc). Any ideas? Or do I have to create a generic powerpoint file and then populate it programmaticall y? Thanks.
3 4550
Thanks. I'll give it a try.
I'm on the right track I think, but does anyone know how to set the text in a cell in a table on a powerpoint slide? This is what I'm doing...
PpApp = gcnew PowerPoint::App lication();
PpApp->Visible = MsoTriState::ms oTrue;
PowerPoint::Pre sentations ^PpPresSet = PpApp->Presentation s;
String ^val = WorkingDirector y + "\\wiips.po t";
PowerPoint::Pre sentation ^PpPres = PpPresSet->Open(val,
soTriState::mso False, MsoTriState::ms oTrue, MsoTriState::ms oTrue);
PowerPoint::Sli des^ PpSlides = PpPres->Slides;
PowerPoint::Sli de ^PpSlideImg = PpSlides->Add(1, PowerPoint::PpS lideLayout::ppL ayoutBlank);
PowerPoint::Sli de ^PpSlideTbl = PpSlides->Add(2, PowerPoint::PpS lideLayout::ppL ayoutBlank);
//get picture parameters
int width = 0;
int height = 0;
GetPptPicSize(f ilename, &width, &height);
PpSlideImg->Shapes->AddPicture(fil ename, MsoTriState::ms oFalse,
MsoTriState::ms oTrue,
(float)(MAX_WID TH + 20 - width)/2, (float)(MAX_HEI GHT + 20 - height)/2,
(float)width, (float)height);
PowerPoint::Sha pe ^tbl =
PpSlideTbl->Shapes->AddTable(Csv Ds->Tables[0]->Rows->Count+1,
CsvDs->Tables[0]->Columns->Count, 10, 10, MAX_WIDTH, MAX_HEIGHT);
tbl->Table->Cell(1,1)->Shape->TextFrame->TextRange->Text = "hello";
The problem is that for some reason C++ .NET in VS2008 doesn't have a member
Text in the TextRange property. All the documentation says it does. What
gives? Thanks.
Vinoj
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: MarjaR |
last post by:
For my application I need to develop an interface with an external
organisation, based on XMLHTTP messaging.
Depending on the specific purpose of the communication, this external
organisation will send me various XML schemas (XSD documents)
specifying the structure for the message interfaces.
I need to be able to interpret these XSD documents and dynamically
generate my database structure based on that.
But... I don't have a clue...
|
by: Rathtap |
last post by:
I want to write a C# application (lets call it Generator) that will
receive an argument(patient account number) and dynamically generate a
series of linked HTML files (claim information, payments, denials etc)
by querying a database based on the argument. This Generator can be
called from an aspx web page, a Cold Fusion page as well as from a
windows application.
1. Does this C# app have to be a console application to receive
arguments?...
|
by: Jeff Johnson |
last post by:
Hi,
Does anyone know how I would code a dynamically generated CheckBoxList
within a PlaceHolder?
I have a function that returns an array, I then want to loop throuth the
array and create CheckBoxes with values returned from the array. So far all
I have are CheckBoxes without values across my screen.
Also, how would I place a "<br />" between all these CheckBoxes so that they
|
by: jijo kuruvila |
last post by:
How we can Dynamically generate a MS Word document using ASP.Net???
--
Jijo kuruvila
trivandrum,Kerala,India
|
by: KBuser |
last post by:
I'm building an internal site which will allow for extremely
customizable queries to be run against our SQL Server (2000) DB. The
page is done in ASP .net 2.0, with C# code behind.
The initial page has a checkboxlist which is generated from a query
which returns all the user tables in our database. This is
checkboxlistTables. For each table selected in this list I want to
dynamically generate a new checkboxlist in a (HTML) table on the...
| |
by: sashang |
last post by:
Hi
I'd like to use metaclasses to dynamically generate a class based on a
parameter to the objects init function.
For example:
class MetaThing(type):
def __init__(cls, name, bases, dict, extra_information):
super(MetaThing, cls).__init__(name, bases, dict)
|
by: Scott Zabolotzky |
last post by:
I'm sure somebody has to have done this already but I can't find
any good references.
If I have an XML file with an associated XSD what is the best way
to dynamically generate a web form with proper controls for the
various elements in the XML file?
I found an article that describes how to do it using stylesheets
(http://www.dnzone.com/ShowDetail.asp?NewsId=151) but it's a little
cumbersome and was tailored to .NET 1.1.
|
by: Mike Logan |
last post by:
I would like to dynamically create a Visio diagram from .Net. I tried
looking at the Visio SDK, but the samples are extremely convoluted for me to
understand.
Does someone have an example of creating a basic drawing with two shapes
connected? I can then expand that example to include other elements.
Also, my plan is for this project to be an ASP.Net website. Is Visio
required to be on the web server in order to generate the Visio...
|
by: ssmith147 |
last post by:
Hi,
I'm somewhat familiar with access and vb programming (I can read someone else's code, for the most part), but I'm still very green when it comes to creating solutions for my own needs.
I'm trying to create a db for a friend's business. I have two issues that I'm wrestling with. First is how to dynamically create a text box on a form.
I'm building a form that relates information between two tables (A, B). Table B is the source of...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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...
|
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...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
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
| |