I've been dealing with this problem for quite a while:
Our company develops addins for word/excel/ppt (both for 2003 and 2007 versions)
One of the options our addins offer is to drag a table from the addin into the application.
This is implemented in 3 different ways:
Excel --> we create a tab delimeted string and drag-dropping it as DataFormats.text
Word --> we create an RTF table, and drag-dropping it as DataFormats.rtf
PPT --> we create an HTML table, and drag-dropping it as DataFormats.html
Everything is working great in both the 2003 & 2007, except for the powerpoint 2007, which doesn't seem to support any kind of html dropping (unlike powerpoint 2003, which is working great) We've tried everything but we're beginning to despair.
Anyone knows how to allow PowerPoint 2007 to allow dropping html into the presentation?
It might be a few years late, but still a reply is always good.
I was doing that too. You should convert your HTML to JPEG
WebsiteToImage websiteToImage = new WebsiteToImage(temporaryFilePath, #"C:\image.bmp");
websiteToImage.Generate();
slide.Shapes.AddPicture(#"C:\image.bmp", Microsoft.Office.Core.MsoTriState.msoTrue, Microsoft.Office.Core.MsoTriState.msoTrue, oldshapeleft, oldshapetop, oldshapewidth, oldshapeheight);
Source found:
Convert webpage to image from ASP.NET
Related
The course I was learning from taught data analytics using older versions of Excel, so I was missing some information and understanding when I tried to follow along.
I was tought how to create a drop down menu in datavalidation using an earlier Excel, however I have office 2019 with Excel 2019 and the buttons and tabs are in differnt places.
I tried to request videos from YouTube. microsoft.com and other sites, but the requested infomation doesn't see to be readily available. So I end up pressing buttons and tabs aimlessly wasting time and trying to figue out how things work.
Im not sure if the drop down menu can be created in different ways, as my excel 2019 does not have the same tabs, and there are currently limited info for excel 2019.
I'm programming a PowerPoint Add-In in VBA. I want to have a button to insert the 'default company logo'. The logo is a vector image.
Is it possible to embed the image 'in the add-in itself'? Such that every user who has the add-in, doesn't need the logo file separately as image?
Unfortunately, PowerPoint add-ins contain only code, no slides, graphics or other content, so you can't embed the graphic in the add-in as a graphic.
You could probably add code to the add-in that writes the binary data for the logo graphic out to a file, insert from there, then delete the file (or leave it there for the next use).
Thanks for your responses! :)
I found a workaround which I like to share.
I converted the picture to an eps-file. Since the eps-file is text-based, I made a VBA-function in my add-in that writes the lines of the eps-image to a temporary text-file called img.eps. Now I can insert the image to my powerpoint slides by the add-in and delete the temporary eps-file.
A bit of a Visual Studio 2010 newbie here, but I have developed a modest working knowledge of how to create report forms linked to a database, but I have come across something that I have yet to face.
I have created a report that has three tables on it. Tables 1 (equipment specs) and 2 (operation schedule) are linked to my database. Table 3 is a table (equipment performance audit) that will need to be populated by the people out in the field. They will have to populate these fields in a PDF editor (Adobe) while they are out in the field and simply save them to PDF file. I do not believe there is a plan to have them to be imported back into a database table (which I think we should, but I don't help make those decisions...yet), so we don't need to worry about that.
The problem that I am facing is that I have no idea how to generate the fillable (i.e. text box?) fields for the PDF in Visual Studio, I tried inserting text boxes, but that didn't work...
Any help would be greatly appreciated. Thank you!
Have a look at the ITextSharp library. It will allow you to create PDF files on the fly. I'm pretty sure that it is also able to create PDF forms as well.
ITextSharp is a port of the JAVA based IText PDF library. so most of the conceptual information that applies to IText will also apply to ITextsharp
Some code examples to help:
- iTextSharp — few C# examples.
- Generating PDF using ItextSharp with Footer in C#
- Create PDFs in ASP.NET- getting started with iTextSharp
- IText In Action book samples
- Answer to Fill PDF Form with Itextsharp
What is the open xml file for office 2007. In fact I want to know open xml file for the outlook so that I can add new contact in outlook. please guide me.
As you can tell by reading the ECMA-376 standard, the OpenXML format is only used to store diagram drawings, spreadsheets, presentations and word processing documents. It has nothing to do with outlook contacts.
We are developing workflow to change properties in Word documents that have been saved against letter activities created by mail merge, and would prefer to code against Office 2007 for simplicity, and to save having to recode in the future.
Any ideas?
After raising this with microsoft support, it's is not possible out of the box.
I will write a CRM plugin that will convert the word doc to docx format on the anotonation enitity before saving to crm.
It's a bit of a pain. but will work.