<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi ,<br> Thanks for your reply.<br>But i was not able to make it for the conversions doc, docx, pptx, xslx .The steps i followed here are described here <br>1. Installed GoOo-3.2-10.exe in C:\Program Files<br>2. Referred C:\Program Files\OpenOffice.org 3\Basis\share\registry\modules\org\openoffice\TypeDetection\Filter .xcu files .<br><br>3. Reference added got from intalled path of sdk\cli of GoOo-SDK-3.2-12.exe<br>cli_basetypes.dll<br>cli_cppuhelper.dll<br>cli_oootypes.dll<br>cli_ure.dll<br>cli_uretypes.dll<br><br>4. Imports made for it are<br>Imports unoidl.com.sun.star.frame<br>Imports System.Runtime.InteropServices<br>Imports uno<br>Imports System.Net.Sockets<br>Imports
unoidl.com.sun.star.lang<br>Imports unoidl.com.sun.star.bridge<br><br>5. Established connection to the Uno using Bootstrap.bootstrap <br><br>6. I give here a piece of code which <span style="font-weight: bold;">worked for me</span> in VB.Net . which sets PropertyValue() for the file types.<br><br> Case ".txt"<br> Dim saveProps As unoidl.com.sun.star.beans.PropertyValue() = New unoidl.com.sun.star.beans.PropertyValue(1) {}<br> saveProps(0) = New unoidl.com.sun.star.beans.PropertyValue()<br> saveProps(1) = New unoidl.com.sun.star.beans.PropertyValue()<br> saveProps(0).Name =
"FilterName"<br> saveProps(0).Value = New Any("Text (encoded)")<br> saveProps(1).Name = "FilterOptions"<br> saveProps(1).Value = New Any("utf8")<br> Return saveProps<br> <br> Case ".rtf"<br> Dim saveProps As unoidl.com.sun.star.beans.PropertyValue() = New unoidl.com.sun.star.beans.PropertyValue(0) {}<br> saveProps(0) = New
unoidl.com.sun.star.beans.PropertyValue()<br> saveProps(0).Name = "FilterName"<br> saveProps(0).Value = New Any("Rich Text Format")<br> Return saveProps<br> <br> Case ".pdf"<br> Dim saveProps As unoidl.com.sun.star.beans.PropertyValue() = New unoidl.com.sun.star.beans.PropertyValue(0) {}<br> saveProps(0) = New unoidl.com.sun.star.beans.PropertyValue()<br>
saveProps(0).Name = "FilterName"<br> saveProps(0).Value = New Any("writer_pdf_Export")<br> Return saveProps<br><br>DirectCast(xComponent, XStorable).storeToURL(" filepath", saveProps) <br> <br>6.Similarly
i tried in the same way for doc, docx, xlsx, pptx as it was in the
fcfg_writer_filters.xcu for doc and docx (from where i got it for txt,
rtf, pdf). <br>fcfg_calc_filters.xcu for xlsx (from where it got it for csv, xls).<br><br><br>Case ".doc"<br> Dim saveProps As unoidl.com.sun.star.beans.PropertyValue() = New unoidl.com.sun.star.beans.PropertyValue(0) {}<br> saveProps(0) = New
unoidl.com.sun.star.beans.PropertyValue()<br> saveProps(0).Name = "FilterName"<br> saveProps(0).Value = New Any("MS Word 97")<br>Case ".docx"<br> Dim saveProps As unoidl.com.sun.star.beans.PropertyValue() = New unoidl.com.sun.star.beans.PropertyValue(0) {}<br> saveProps(0) = New unoidl.com.sun.star.beans.PropertyValue()<br> saveProps(0).Name = "FilterName"<br> saveProps(0).Value = New Any("MS Word 2007 XML")<br><br>Case
".xlsx"<br> Dim saveProps As unoidl.com.sun.star.beans.PropertyValue() = New unoidl.com.sun.star.beans.PropertyValue(0) {}<br> saveProps(0) = New unoidl.com.sun.star.beans.PropertyValue()<br> saveProps(0).Name = "FilterName"<br> saveProps(0).Value = New Any("Calc MS Excel 2007 XML")<br><br>Case ".pptx"<br> Dim saveProps As unoidl.com.sun.star.beans.PropertyValue() = New unoidl.com.sun.star.beans.PropertyValue(0) {}<br>
saveProps(0) = New unoidl.com.sun.star.beans.PropertyValue()<br> saveProps(0).Name = "FilterName"<br> saveProps(0).Value = New Any("MS PowerPoint 2007 XML")<br><br>These conversions throws exception at <br>unoidl.com.sun.star.task.ErrorCodeIIOException<br>Source: mscorlib <br><br>Server stack trace: <br>Exception rethrown at [0]: <br> at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)<br> at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)<br> at unoidl.com.sun.star.frame.XStorable.storeToURL(String sURL, PropertyValue[] lArguments)<br><br><br>--- On <b>Tue, 23/2/10, Petr Mladek <i><pmladek@suse.cz></i></b> wrote:<br><blockquote
style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Petr Mladek <pmladek@suse.cz><br>Subject: Re: [ooo-build] Go-oo Uno Filter Name Query<br>To: ooo-build@lists.freedesktop.org<br>Cc: "vnaresh prasad" <vnareshprasad123@yahoo.com><br>Date: Tuesday, 23 February, 2010, 3:36 PM<br><br><div class="plainMail">Hi Vnaresh,<br><br>On Monday 22 February 2010, vnaresh prasad wrote:<br>> Hi,<br>> Im a Developer involved in an application which converts files from one<br>> format to other. using VB.Net in Windows 7 .Im using UNO service for this<br>> conversions . Im able to convert all formats such as "txt"<br>> ,"pdf","rtf","sxi" etc.. supported in OpenOffice and using<br>><br>> com.sun.star.beans.PropertyValue<br>> for it. Which does not support doc,docx,xlsx,pptx. And so i migrated to<br>> Go-oo and all other conversions work for it.<br>> But was not able to get
FilterName and FilterValue for the newly supported<br>> file formats<br>><br>> 1. doc<br>> 2. docx<br>> 3. pptx<br>> 4. xlsx<br><br>I am not 100% sure what value you need. Anyway, I am sure that you will be <br>able to find it in:<br><br>C:\Program Files\OpenOffice.org <br>3\Basis\share\registry\modules\org\openoffice\TypeDetection\Types<br>and<br>C:\Program Files\OpenOffice.org <br>3\Basis\share\registry\modules\org\openoffice\TypeDetection\Filter<br><br>For example, the docx type is defined in Types\fcfg_writer_types.xcu with the <br>name "writer_MS_Word_2007". The corresponding filter is defined in <br>Filters\fcfg_writer_filters.xcu with the name "MS Word 97".<br><br><br>-- <br>Best Regards,<br><br>Petr Mladek<br>software developer<br>--------------------------------------------------------------------- <br>SUSE LINUX, s. r. o. e-mail: <a
rel="nofollow">pmladek@suse.cz</a><br>Lihovarská 1060/12 tel: +420 284 028 952<br>190 00 Prague 9 fax: +420 284 028 951<br>Czech Republic <a rel="nofollow" target="_blank" href="http://www.suse.cz/">http://www.suse.cz/</a><br>_______________________________________________<br>ooo-build mailing list<br><a rel="nofollow">ooo-build@lists.freedesktop.org</a><br><a rel="nofollow" target="_blank" href="http://lists.freedesktop.org/mailman/listinfo/ooo-build">http://lists.freedesktop.org/mailman/listinfo/ooo-build</a><br></div></blockquote></td></tr></table><br>
<!--1--><hr size=1></hr>
The INTERNET now has a personality. YOURS! <a href="http://in.rd.yahoo.com/tagline_yyi_1/*http://in.yahoo.com/" target="_blank">See your Yahoo! Homepage</a>.