extract ppt from office word using OpenXml format through c# - visual-studio-2005

I want to extract a flash object from a word doc using OpenXml.I have done it other way round but it is not working as, if there are many flash objects then the processing time got hampered and henceforth i think openxml is more suitable>please someone help me in doing the same .I am coding in c#

Use this: Standalone tool for extracting embedded Office Open XML objects from files

Related

manipulate visio format file programmatically

I want to extract information from a Visio file and do some change on them(like using C++), then write them back?
My question is:
Is manipulating visio files(mainly reading and writing) programmingly possible?
If so, any tutorial lin is preferred
Reading/Writing Visio VSD Files
This is a binary format and as far as I know, it is not documented. However, check out what has been going with support for reading Visio VSD files in LibreOffice.
Reading/Writing Visio VDX files
These are just the XML equivalent of VSD files and relatively straightforward to read and write if you are familiar with Visio. For simple tasks such as finding and manipulating all shape custom properties or formatting it will be very straightforward to load the XML into a DOM, process it, and then save it back out. For example, I once wrote a small tool that used this technique to search and replace text in a set of VDX files. One warning: the more complex a task you want to perform, the more you will need to be very familiar with Visio and how it works with Shapesheets, etc.
Here's a link to get started: http://msdn.microsoft.com/en-us/library/aa218409(v=office.10).aspx

How to generate a PDF within application with no reporting framework

I need to create pdf reports in my app. I'm using asp.net mvc3. What's the best way to do this? I don't really want to use a reporting framework if i can avoid it, it's just a few reports, table layout, groupings, pagination possibly, totals, ability to merge pdfs into 1 pdf....any ideas? what would be ideal is if i could convert my html view into a pdf simply...
There is nothing built into .NET allowing to create PDF files. So you have two possibilities: write one yourself from scratch or use one that exists.
In case you decide to go with the second you may take a look at flying-saucer which along with ikvmc.exe could be used to convert XHTML files into PDF. I have blogged about some of the required steps in order to get this working.
Some possibilities:
I think you can do this with SQL Server reporting services (in SQL rather than a 3rd party reporting framework)
Low level PDF libraries that can be used: PDFSharp, iTextSharp.
You could print an html file to a postscript driver using word automation, then convert the PS to PDF via GhostScript

How to convert powerpoint pptx file to ppt file programmatically without powerpoint installed?

How can I convert a pptx file to a ppt file programmatically. This happens on a web server that does not have PowerPoint installed.
I'm after a free solution preferably.
I may consider installing PowerPoint on the server if it is not possible but I'm concerned about the scalability of that solution. I wouldn't want the server to be struggling because multiple conversions are in progress...
Thanks
You could install OpenOffice Impress (Libre Office Impress) on the server, maybe it can do the document conversion.
I hear that in OpenOffice, there are python APIs avalaible, and maybe more, even a VBA clone.
It is probably not possible to convert from the command line like this,
ooimpress -infile "mydoc.pptx" -outfile "mydoc.ppt"
In any case, the conversion will probably not be perfect. If your pptx files contain embedded OLE documents, expect problems.
SImple slides with bulleted lists and some simple graphics objects (circles, arrows, Raster Graphics files such as gifs) are less likely to be a problem.
Here are some links to openoffice forum-threads with similar problems.
.doc to .pdf, all command-line?
http://www.oooforum.org/forum/viewtopic.phtml?t=5513
Help! - Simple command line conversion of Word doc to XML
http://www.oooforum.org/forum/viewtopic.phtml?t=7242
The presentation object has a SaveAs method that can do this. For instance,
for saving the active presentation as a .ppt file, the following code would
do the job:
ActivePresentation.SaveAs "FileName.ppt", ppSaveAsPresentation
Reference:
http://www.pcreview.co.uk/forums/programmatic-conversion-pptx-into-ppt-t3339221.html

Ruby: delete columns by name in MS Excel on Windows?

Is there a way to use Ruby to delete columns in an Excel spreadsheet by name (i.e. the value in the first row of the spreadsheet) on a Windows machine?
Background if you want it:
I am going to be receiving a large number of Excel spreadsheets on a regular basis. Some of these spreadsheets will contain columns that need to be deleted. I will know the names (first-row values) of the columns, but their positions in their respective spreadsheets will change from time to time, so I won't be able to automatically refer to the columns by letter. I would really like to be able to automate this process...
POI is the Apache project to create a library for reading MS Office files; it appears they have Ruby extensions. I have never used it before, but the code looks easy enough to understand. Good luck! Check it out here
You probably want to use the WIN32OLE library, built into the standard library on Windows. There's an example in PickAxe about using Microsoft Excel through the WIN32OLE library, and other examples here. You just need to learn how to use the Excel COM API to make the particular changes you're interested in.

VB6 library for creating Excel spreadsheets

I am trying to get a legacy app working on terminal services with the minimum amount of changes to the existing code base.
What library for creating Excel spreadsheets using VB6 without having Excel installed could I use to solve this?
If you are using COM Interop to create Excel spreadsheets you must have Excel installed on the machine.
You could create comma delimited .csv files instead.
CSV is easy as suggested in the other answer. Sometimes folk use HTML too.
Create Excel (.XLS and .XLSX) file from C#
Or even ADO and OLEDB
http://support.microsoft.com/kb/195951/

Resources