Embeded Acrobat Reader in Windows 8 Store Application - c#

How can I embed Acrobat Rader in aWindows 8 Store Application. There are some tutorials based on C# and there some related question but I could not find any solution. They all suggest adding a COM element and then selecting Acrobat Reader control from toolbox. I have added Acrobat Reader COM element but it gave me error:

Sad to say, but at this time, the only way to read pdf files inside a Windows 8 Store app is to use commercial libraries such as Foxit.

You cannot do this if you want your application to be certified for distribution on the Windows Store.
COM objects can be used in Windows Store Apps, but they must be distributed with your application package, and they must not use any forbidden API for the Windows Store. This is must likely not the case for the ActiveX control of Acrobat Reader, since it uses (just to mention one example) the OPENFILENAME dialog, which is not allowed in Windows Store.
Edit on April 2013:
Amyuni PDF Creator for WinRT (a commercial library) is currently available as pre-release trial. This library provides a Xaml control for PDF viewing in Xaml-based projects, and it can also be used for PDF-to-HTML5 convertion in WinRT-Javascript projects. Disclaimer: I currently work as a developer of the library

Related

Implementing a Postek Printer on my .NET c# application

So i created a .net c# application that does store article codification, and also bought a Postek c168 barcode printer, and i want to create a section on my application that prints texts and images to the direct thermal labels with the printer, i also downloaded a dll file for developers on the official printer website, my question is on how to use the dll file or how to implement the printer on my application.
Downloaded SDK contains the manual for SDK functions "Postek API Manual_CDFPSK V3.01.pdf". I do not want to be sarcastic, but maybe you should start reading that document first.
My initial observation is that DLL contains some native functions that you can call over interop.

What's the best way to convert docx/pptx documents to PDF from a Windows Universal App?

Usually, I would use the Microsoft Office Interop library, but it requires the use of COM objects, which (as far as I know) isn't possible if I'm developing a Windows Universal app. What are some alternative methods I could use to convert Word and PowerPoint files to PDF from a Windows Universal App? Thanks!
There are a number of 3rd party libraries that will do this for you pretty easily, I have used Synfusion (there's a free version) for a similar workflow with Word, Excel and PDF (not PowerPoint) and while not a huge fan overall of the Syncfusion library (version 11), the Office/PDF stuff has done its job well.
Alternatively, if you're sure you will only be using the latest version of Office docs (extensions ends in X) you should be able to use any of the open office libraries to open the file to read it and use something like itext to export back to PDF. That might be trickier for more complicated documents (like PowerPoint slides).
The Syncfusion seems to be a good set of components even if in my projet i only wanted to print/convert office (.doc and .docx) documents.
Did you try this ? and what do you think of :
the speed of converting
the quality printing pdf files
the quality of converting Word file to pdf
Did you use the free "Community Edition", because i can really image we can use theses library with no cost ! What is the drawback ofusing it from free

Connecting C# and Microsoft Office Application

I'm trying to do a project for school. The project is to create a presentation software. Example of this is the Microsoft PowerPoint. My goal is to mimic its use, but instead of customizing each slide, the user must be able to upload documents(excel, power point, and word). After uploading, the software must be able to convert each page to a "slide".
My medium will be Microsoft Visual C#. I would like to ask for any reading material, tutorials or any suggestions on how i could attack this project. Currently I am able to get text from Microsoft word and printing it out in a RTF text box, unfortunately I am not able to preserve its format(font style, font size, etc.). Although I have added Microsoft Word 12.0 Object to my references in c#, i do not still know how it works.
My inspiration for this project is EasyWorship, a presentation software designed for church use. Their software can upload power point presentations only.
I do really need a lot of help. Please, and thanks.!
I believe you are going to have to get a bit down and dirty with the COM Interop Assemblies available via the combination of Visual Studio w/Tools for Office as well as actually having the Office Suite installed.
MSDN has a run down of the various Interop DLLs available, it may be a jumping off point toward finding the entry point you need.
Additionally, there are various walkthroughs on MSDN for beginning development extending Office components, so that may get you a bit familiar with how to implement the assemblies in your application.
Read this article from MSDN
You create an add-in for Word 2007 by using Visual Studio 2005 Tools for the 2007 Microsoft Office System Second Edition. The add-in takes the structure of the current Word 2007 document, gathers information about all the headings, and creates a basic PowerPoint 2007 presentation, with corresponding Agenda and topic slides.
What you have in mind is not an easy task.
Consider installing virtual image printer, Virtual Image Printer driver for example. Then you can open your document in an instance of Microsoft Word, print the document to the image printer, wait for images to be produced, then display images one at a time in your C# application.

How convert PCL generated by HP LaserJet 5 into PDF in C#?

I need to retire 15 years old system and preserve all data. It can only print documents into specific printer HP LaserJet 5. I can print documents into PCL files and looking for ways to convert all this files into PDFs programmatically. Preferably in C#. Can anybody recommend good library or command line tool? Preferably free ;-)
The commandline tool GhostPCL (part of GhostPDL), by the same developers as Ghostscript, can convert PCL to PDF. Recent changes in their public source code repository provide a fully integrated source tree encompassing Ghostscript, GhostPCL and GhostXPS. This includes MS Visual Studio *.sln and *.vcproj files to build all or part of their products. License is GPL or commercial (commercial licenses to be obtained from Artifex):
The simplest solution I found is VeryPDF PCL Converter http://www.verypdf.com/pcltools/index.html. It has command line mode, GUI (for command line), batch mode and only cost $125. My company has been pay for it. Hope this will help somebody too.
I've used Visual Softwares pcl2pdf on several projects, it worked well for me.
We are currently using Lincoln's PCL to PDF converter. It was simple to call and provides embed into our C# application. It also provides good feedback in terms of Events when a page has been converted etc so you can even add progress bars etc.
Lincoln PCL to PDF Converter
I've used PCL to PDF for Windows and OS X which is based on GhostPCL.

Programmatically access a Microsoft Project (MPP) file from C#

What are my options for programmatically accessing a Microsoft Project file? What are the pros and cons of each approach?
I will basically need to import all data from the file into another data structure. Using the Office Interop assembies is low on the preference scale.
The MPXJ (mpxj.sf.net) library comes in both Java and .Net flavours and will allow you to read and write multiple Microsoft Project file formats using a single consistent API. I am aware of commercial products which use both the Java and the .Net versions of MPXJ without any issues.
Disclaimer: I'm the maintainer of MPXJ.
You may use Aspose.Tasks for .NET. This component allows you to work with Microsoft Project files. It doesn't require MS Office to be installed on the server, unlike Office Interop. The API is very simple and easy to use. And it provides a rich set of features to read, edit, write, and convert MPP files.
This component is a normal .NET assembly which can be used with your .NET applications. It works on any Windows OS and in 32/64-bit environments as well.
Disclosure: I work as developer evangelist at Aspose.
Here are the options:
Interop (messy and horribly slow for
large projects)
Save project in XML and work with it
(messy)
Save project in the database (that's
not publishing and it is available
for project 2003 only - see ODBC
option while saving). I've seen it
being used a lot in the integration
scenarios
Projette (commercial, $10 per
license)
ILog Project Viewer (also
commercial)
The Microsoft Office API provides programmatic access to MS Project. I have only used it for Word and Excel so I don't know how rich the interface is - you will have to do some digging around on MSDN to find out what you can and can't do.
One of the Java projects at my company uses a commerical product by Aspose which allows applications to manipulate Office documents including Project. It works well for their purposes, but again, they have only used it for Word and Excel so can't offer much advice on Project.
EDIT (2019): I can confirm that it is a very capable product.
Sourcefourge.net offers a component in Java which can be integrated with .net applications to read MPP files upto MPP 2007 the link is
http://mpxj.sourceforge.net/getting-started.html

Categories

Resources