.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Document Converter

Posted By:      Posted Date: October 12, 2010    Points: 0   Category :SharePoint

Hi, I created a console app that does word to pdf conversion. Then I deployed document converter as feature and put app.exe in C:\Program Files\Microsoft Office Servers\14.0\TransformApps

After that I could get option to convert from word to pdf however it does not seem to be working.

So here are few things I would like to know:
 1. How do we know what parameter values are sent by SharePoint 2010 Launcher Service? (My app can handle arguments like -in, -out, -config and -log)
 2. How to use SPFile.Convert() method? what should be value for -config parameter?
 3. What does following log message means?

Starting C:\Program Files\Microsoft Office Servers\14.0\TransformApps\DocConverter.exe for single-call with args: -in "C:\Program Files\Microsoft Office Servers\14.0\Bin\HtmlTrLauncher\input.docx" -out "C:\Program Files\Microsoft Office Servers\14.0\Bin\HtmlTrLauncher\output.pdf" -config "C:\Program Files\Microsoft Office Servers\14.0\Bin\HtmlTrLauncher\config.info" -log "C:\Program Files\Microsoft Office Servers\14.0\Bin\HtmlTrLauncher\error.log"

C:\Program Files\Microsoft Office Servers\14.0\TransformApps\DocConverter.exe took too long on args: -in "C:\Program Files\Microsoft Office Servers\14.0\Bin\HtmlTrLauncher\input.doc

View Complete Post

More Related Resource Links

Need help deploying SP2010 Document Converter using Visual Studio 2010


I have created an SP 2010 Document Converter app, which seems to work fine in all respects except it doesn't seem to be converting documents in SharePoint. I think there is a problem with the way that I'm deploying the converter executable to the server, but I am having trouble finding the specific issue.

Some notes:
* SP 2010 sees the document converters in my Elements.xml file and is making them available in Sharepoint.
* When I tell SP2010 to convert a document using one of my Converters, I can tell that the service is trying to do *something* in the Central Administration console (job shows up with progress bar and sits there for a while). I have no idea what it's actually doing during that time though.
* All of my executable and executable DLLs have been defined in VS2010 as having "Application Resource" Deployment Types - not sure if this is right because the MS SP2010 SDK info doesn't seem to give much guidance on this subject. VS 2010 is deploying all of the appropriate executable files to C:\inetpub\wwwroot\wss\VirtualDirectories\80\resources\PDFDocumentService\DocumentConverter\". I have no idea if this is a sensible location for document converter executable files. When I try to run my executable in this location from the command line, it works fine.

My guess is that there's a disconn

Working with SharePoint document libraries

Document libraries are collections of files that you can share with team members on a Web based on Microsoft Windows SharePoint Services. For example, you can create a library of common documents for a project, and team members can use their Web browsers to find the files, read them, and make comments. Users with Microsoft Office 2003 can check out and edit the files as if they resided on a local or network drive.

By default, your team Web site comes with a built-in document library named Shared Documents, which is listed on the Quick Launch bar as well as on the Documents and Lists page.

jQuery $(document).ready() and ASP.NET Ajax asynchronous postback

Many call it the ASP.NET jQuery postback problem, but using the technique below should make it no problem anymore. $(document).ready() isn't called after an asynchronous postback. What this means? You lose the functionality that should be executed within $(document).ready() after an UpdatePanel rendered its contents after an asynchronous postback.

SharePoint Document Workspaces for Developers

Office 2003 is being released this month, and a cast of supporting applications is already available. One of these is Windows SharePoint Services 2.0, the free team add-on for Windows Server 2003. If you're not familiar with SharePoint Services basics, take a look at What Developers Need to Know About Windows SharePoint Services. In this article, I'm going to drill into one key place where SharePoint and Office 2003 overlap: document workspaces

Upload a File to a SharePoint Document Library - Part I

The following helper class demonstrates a few techniques that allow documents to be uploaded to a SharePoint document library programmatically without using the API or a custom web service. You don't need to specify a document library name, and it will create any folders specified in the URL as required. File meta data will be updated if any properties are passed.

SharePoint document migration challenges when migrating files and folders

There are several challenges when migrating documents to Microsoft SharePoint. While these challenges can be overcome, they are a real pain if the migration source, content and file systems are not SharePoint friendly.

.net code converter

For coverting your programming langugae to another languge the below site is very help full


Charset Problem with dynamically generated Word Document


in my asp.net web application i am dynamically generating a word documnet out of a sql data. I have set the char set UTF-8 during the doument creation in code but still when i open the generated document and check it char set .. it is always windows-1252 not the one that i have set. My sql data in the document have special characters whihc can only be understandable using the UTF-8 charset otherwise its always ?T written in place of an apostrophy . Pasting my code here..

         HttpContext.Current.Response.ContentType = "application/msword";
         HttpContext.Current.Response.ContentEncoding = System.Text.UnicodeEncoding.UTF8;
         HttpContext.Current.Response.Charset = "utf-8";
         string strFileName = "Details" + ".doc";
        HttpContext.Current.Response.AddHeader("Content-Disposition", "inline;filename=" + strFileName);
        StringBuilder strHTMLContent = new StringBuilder();
        string strMessage = " ";
        DataView abstractview = (DataView)dsAbstract.Select(DataSourceSelectArguments.Empty);
        foreach (DataRowView row1 in abstractview)
            strMessage += "<table border='1' cellspacing='0' cellpadding='5' width

Embed word document inside excel



I am using ASP.NET and C# 2.0 and working on web application.

I want to embed a word document inside a excel sheet.

How to embed word document inside excel.

Thank you



Office Development: Manage Metadata with Document Information Panels


Here the author uses Document Information Panels in the Microsoft 2007 Office system to manipulate metadata from Office docs for better discovery and management.

Ashish Ghoda

MSDN Magazine April 2008

Advanced Basics: Setting Word Document Properties the Office 2007 Way


The last time I wrote this column (March 2006), I shared an application that allows you to update all the Microsoft® Word documents in a folder and its subfolders. Each time the application finds a document in the specified path, it updates the document properties to match those you specified in the application.

Ken Getz

MSDN Magazine June 2006

Advanced Basics: Set Word Document Properties Programmatically


At the beginning of another lovely day of writing courseware in mad pursuit of unrealistic deadlines, I received a frantic call from a business partner. He was at the end of a long consulting project and had several hundred Microsoft® Word documents, all of which required their document properties to be set identically, except the Title property of the document, which was to be based on the document file name, minus the .

Ken Getz

MSDN Magazine March 2006

XML Comments: Document Your Code in No Time At All with Macros in Visual Studio


Starting in Visual Studio 2005, XML documentation support will become available in Visual Basic and C++ as it has been for C#. However, making full use of the many comment tags will take a little extra work In this article, the author shows how Visual Studio macros can be used to automate the creation of XML documentation and creates macros that write large sections of comments with just a keystroke.

Tony Chow

MSDN Magazine July 2005

SharePoint: Add a Recycle Bin to Windows SharePoint Services for Easy Document Recovery


Windows SharePoint Services helps improve collaboration and workflow while protecting documents and intellectual property. But one feature is conspicuously missing - an easy way to back up and restore deleted files from document libraries. In this article, the authors take advantage of the extensibility of WSS and its server-side and client-side object models to build a restore feature that works like the Recycle Bin in Windows Explorer.

Maxim V. Karpov and Eric Schoonover

MSDN Magazine February 2005

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend