Javascript must be enabled in your browser to use this page.
Please enable Javascript under your Tools menu in your browser.
Once javascript is enabled Click here to go back to سیستم عامل جدید ایرانیان v2.88
Converting Microsoft Word Document to PDF format using OpenOffice.org (Portable)

situation in the site

صقحه اصلی Articles VB.NET Converting Microsoft Word Document to PDF format using OpenOffice.org (Portable)

Search

Statistics Site

mod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_counter
mod_vvisit_counterامروز10
mod_vvisit_counterدیروز120
mod_vvisit_counterاین هفته285
mod_vvisit_counterاین ماه1210
mod_vvisit_counterکل بازدیدها39844

Online users

We have 2 guests online

Members of the online

غير فعال
Banner
Banner

اخبار ايران

With law enforcement to targeted subsidies were no poor country will not
With law enforcement to targeted subsidies were no poor country will not
تهران - رييسجمهوري با اشاره به اهميت اجراي قانون هدفمند کردن يارانه ها تاکيد کرد : با اجراي اين قانون هيچ فقيري در کشور باقي نمي ماند. Tehran - President pointed out the importance of law enforcement targeted subsidies emphasized: with the implementation of the law of any country remain poor.
به گزارش خبرنگار سياسي ايرنا ،محمود احمدينژاد که روز سه شنبه در ديدار با شرکتکنندگان بيست و يکمين همايش ملي معرفي کارگران و گروههاي کار نمونه کشور سخن ميگفت،افزود :اجراي اين قانون 100 درصد به نفع جامعه کارگري است . According to IRNA political correspondent, Mahmoud Ahmadinejad on Tuesday to meet with participants in the Twenty-first National Conference workers and group work to introduce the country spoke instance, added: "Implementation of this law 100 percent in favor of workers.
وي در بخش ديگري از سخنان خود افزود: بايد مناسبات کاري خود را با فرهنگ کشورمان منطبق کنيم زيرا نميتوان با فرهنگ سرمايهداري و مادي غرب مناسبات کاري کشور را تنظيم کرد. He added that another part of his speech: To be working with our culture because we can not comply with the material culture of the capitalist West relations and the country set to work. کارفرمايان بايد با کارگران براساس فرهنگ کشور خودمان برخورد کنند و در اين امر از کشورهاي غربي الگو نگيرند. Employers should treat workers according to their own country and culture in Western countries, this pattern other users.
احمدينژاد ادامه داد: ماموريت همه ما ساختن ايران است که البته همه هياهوها، اظهارنظرها و حرکتها بايد معطوف به ساختن ايران باشد. Ahmadinejad continued: our mission to make all of the constitutional revolution, of course, the comments should be focused on building the movement in Iran. هر اقدامي که در جهت ساختن ايران نباشد فايدهاي ندارد. Any action to make Iran does not Faydhay.
رييس دولت دهم اولين لازمه ساختن ايران را همدلي دانست و بيان کرد: براي ساختن ايران نيازمند همدلي هستيم که همدلي جامعه کارگري الگويي براي همه اقشار است زيرا اگر به اين موضوع توجه شود، همه کارها با سرعت بيشتري انجام خواهد شد. I needed to make the first head of government of Iran expressed sympathy and said: Iran needs to build empathy empathy that are a model for all strata of society workers because if this is the subject of attention, everything will be done more quickly.
رييسجمهوري در ادامه با تاکيد بر اينکه ما نيازمند نگاه به افقهاي بلندي در کار هستيم، تصريح کرد: ارزيابيها به ما نشان ميدهد ظرفيت پيشرفت در کشور ما سه برابر وضع فعلي است. More President emphasized that we need to look at long horizons we work, emphasized: "Our evaluations show that the capacity to progress in our country is three times the current situation. اگرچه در سالهاي اخير پيشرفت کشور رشد قابل توجهي داشته است اما باز هم ظرفيت کار زيادي در کشور وجود دارد. Although the country's progress in recent years has had significant growth but still a lot of work capacity in countries.
وي افزود: يکي از محورهاي اساسي نظام سلطه براي تسلط بر ملتها، جلوگيري از همدلي آنها است و براي از بين بردن همدلي ميان اعضاي يک خانواده سرمايهگذاري و تلاش بسياري ميکنند. He added: "One of the main axes system of domination for domination over nations, to prevent them sympathy and empathy for the destruction of the members of a family investment and effort are many.
احمدينژاد از نگاه به قلههاي بلند به عنوان دومين لازمه ساختن ايران ياد کرد و خاطرنشان کرد: اگر ملتي همدلي و امکانات داشته باشد اما افقهاي بلندي را وجهه همت خود قرار ندهد، پيشرفت نخواهد کرد. Ahmadinejad to look up as the second peak of construction required to learn and noted: "If a nation is possible, but empathy and long horizons does not face their efforts, progress will not. زيرا افقهاي بلند، همتهاي بلند را برميانگيزاند. Horizons because the long, long Brmyangyzand Hmthay.
وي با تاکيد بر اينکه افق نگاه ملت ما،جهاني است،تصريح کرد: ملتي در دستيابي به اهدافش موفقتر است که بالاترين قلههاي جهاني را مورد نظر خود قرار دهد. He emphasized that looking at the horizon of our nation, world, emphasized: "the most successful nation in achieving its goals is the highest peak in the world are looking to. حتي کساني هستند که افق نگاهشان ساختن جامعه بشري است. Their eyes lock, even those who make the horizon of human society. مطمئنا اين افراد بهتر ميتوانند کشور خود را بسازند. Surely these people can better their own country. بنابراين هرچقدر افقهاي ما بلندتر باشد، همت ما قويتر، مستحکمتر و عميقتر خواهد بود. So no matter how our horizons are longer, our efforts stronger, deeper and stronger will.
احمدي نژاد کار، تلاش و پيگيري را ديگر عامل ساختن ايران دانست و گفت: بسياري از افراد افقهاي بلندي دارند اما اهل کار و تلاش نيستند درحالي که براي رسيدن به افقهاي بلند بايد همت بسيار و کار و تلاش پيدرپي داشت. Ahmadinejad's work, effort and other factors make up the Iran and said: Many people have horizons loudness but not from work and while trying to reach a long horizons should be much effort and work to Pydrpy found.
رييس دولت دهم با بيان اينکه جامعه کارگري در سه بخش همدلي، نگاه بلند و کار و تلاش پيشتاز و پيشگام است، تصريح کرد: در طول دوره انقلاب جامعه کارگري ما در همدلي ممتاز بوده است، بهطوري که در برههاي از زمان گروههاي وابسته به استکبار تلاش کردند در جامعه کارگري فاصله و اختلاف ايجاد کنند اما اين قشر از جامعه همواره به آنها پاسخ منفي و محکم داد. Head of government do with the expression of sympathy workers in three parts, looked up and work to express and Pioneer has emphasized: "During the Revolution of Our workers have been privileged in sympathy, so much so that the lambs from the time-dependent groups of arrogance community workers tried to create distance between segments of society, but they always gave a strong negative response.
احمدينژاد جامعه کارگري را از منسجمترين اقشاري دانست که در جهت خدمت و پيشرفت کشور فعاليت ميکنند و خاطرنشان کرد: جامعه کارگري در همه عرصههاي انقلاب در خط مقدم حرکت کرده است که اوج اين حرکت را در دوران هشت سال دفاع مقدس ديديم. Ahmadinejad Mnsjmtryn strata of society, workers knew that serve and advance the country working and noted: community workers in all fields of revolution has been at the forefront of moves that during the peak of this movement we saw eight years of sacred defense. بسياري از افراد جامعه کارگري به عنوان نيروي داوطلب به جبهه اعزام ميشدند. Many people labor community as volunteers were dispatched to the front. در بخش کار و تلاش هم اين قشر يک لحظه دست از کار و تلاش برنداشته است. In both segments of work to hand in a moment of work and effort has not taken.
وي با اشاره به اينکه بخش مهمي از پيشرفتهاي صنعتي و اقتصادي کشور ما مرهون جامعه کارگري است،بيان کرد: از همه کارگراني که با ابتکار و نوآوري خود موجب شدند هزينههاي بسياري در کشور کاهش يابد تشکر ميکنم و البته اين موفقيت از ايمان، تعهد، پاکي و دلسوزي جامعه کارگري برميآيد. He pointed out that an important part of industrial and economic progress of our country owes the community workers, stated: "all workers with initiative and innovation led to reduced costs in many countries and of course I thank the success of faith, commitment, Worker falls innocence and caring society.
رييسجمهوري درباره مسووليت دولت براي استفاده از ظرفيت کار در کشور خاطرنشان کرد: دولت بايد مقدمات استفاده از اين ظرفيت را فراهم کند. President about government responsibility for the use of labor capacity in the country noted: the primary use of this capacity should provide. همچنين پشتيبانيهاي لازم را انجام دهد که البته بخش عظيمي از اين مسووليت متوجه توليدکنندگان و خدماتدهندگان اعم از کارفرمايان و کارگران است. Pshtybanyhay also necessary to do that of course much of this responsibility and the producers noticed Khdmatdhndgan both employers and workers.
رييس دولت دهم خطاب به کارفرمايان تصريح کرد: همه ما براي ساختن ايران يک خانواده هستيم و با اعتقادات و فرهنگ کشور خود زندهايم. Head of State addressed to employers, I emphasized: "All of us are used to build a family of beliefs and cultures and their countries survive. در فرهنگ ما رسيدگي به حال کارگر بالاترين عبادت و موجب برکت کار است که اين موضوع را دنياي سرمايهداري درک نميکند. In our culture now working to address the highest blessing prayer and led the work on this issue does not understand the capitalist world. بنابراين با توجه به جامعه کارگري بايد موجب برکت شويد. Therefore, workers should lead society bless you.
احمدينژاد افزود: ما در دولت برکت را به خوبي ديدهايم. Ahmadinejad added: "We have seen the blessing as well. به عنوان مثال دولت در سال 88 حقوق کارمندان را 22 درصد، حقوق نيروهاي نظامي و انتظامي را 26 درصد و حقوق بازنشستگان را افزايش داد. For example, in the 88 to 22 percent of workers rights, rights of military and police and 26 percent pension increase. همچنين بخش قابل توجهي از بدهيهاي دولت به سازمان تامين اجتماعي را هم پرداخت کرد. Also, a significant portion of government debt to social security organization also paid. کارهاي عمراني بسياري هم انجام داد، يارانهها را هم کم نکرد اما هنگامي که تفاوت هزينه دولت در سال 88 را نسبت به سال 87 بررسي ميکنيم متوجه ميشويم خرج دولت تنها 2 درصد افزايش يافته است. Many also did construction work, too little subsidies but the difference did not cost the government 88 years than 87 years, we realize we will investigate government spending has increased only 2 percent. اين موضوع نشاندهنده برکت در کار دولت است. This work shows the blessing of government.
وي با انتقاد از کساني که بر شعار "دو بچه کافي است " تاکيد ميکردند، گفت: کساني هستند که فکر ميکنند ذخاير عالم به دست آنهاست، بنابراين از اينکه کسي سه بچه يا بيشتر داشته باشد ناراحت ميشوند و براي مردم قانون ميگذارند و ميگويند حق نداريد سه بچه داشته باشيد. He criticized those on the slogan "Two children are enough" would emphasize, he said: those who think the world of resources available to them, so that one or more children is Tuesday are upset and called for the law and put right Tuesday do not have kids.
رييسجمهور خطاب به اين افراد اظهار کرد: روزي فرزند را خداوند ميدهد. President addressed to the people remarked: One day the child of God. بنابراين اين شعار قابل قبول نيست. Thus, this slogan is not acceptable. حتي آنها موضوع فقر را براي اين شعار مطرح کردند اما خداوند در قرآن ميفرمايد: "از ترس فقر بچههاي خود را نکشيد، ما به آنها با شما روزي ميدهيم." Poverty issue even those raised for this slogan, but the Holy Qur'an states: "their children for fear of poverty, eg, we provided you give them."
احمدينژاد به مقايسه وضعيت مردم در سال 60 با سال 89 پرداخت و خاطرنشان کرد: در سال 60 در روستاها آب، برق و مخابرات نبود و در شهرها هم مردم با چند کوپن زندگي خود را ميگذراندند اما با اينکه امروز جمعيت 75 ميليون نفر يعني دوبرابر شده، وضع مردم بهتر شده است، بهطوري که ميزان دانشجويان کشور 10 برابر شده ، صنعت، کشاورزي و اختراع رشد قابل توجهي داشته است و بيمارستان و مدرسه ساخته شده.بنابراين رشد جمعيت موجب فقر مردم نشده است. Ahmadinejad compared the situation in 60 years with 89 years of payments and noted: in 60 rural water, electricity and telecommunications were also people in cities and a few coupons, but spent his life today that the 75 million population doubled , the situation has improved, so much so that the students of the country by 10 times, industry, agriculture and the invention has considerable growth and built hospitals and schools. Thus, population growth causes poverty, not people.
وي با اشاره به اجراي سياستهاي کنترلي جمعيت از سوي کشورهاي غربي بيان کرد: کشورهاي غربي سياستهايي را براي کنترل جمعيت خود اعمال کردند اما امروز رشد آنها منفي شده است. He pointed out the population control policies expressed by the Western countries: Western countries policies to control its population growth imposed, but today they are negative. بهطوري که از کشورهاي ديگر افراد را براي زندگي به کشور خود ميبرند که اين کار موجب از بين رفتن آن ملت خواهد شد. So much so that people from other countries for life to his country intended that this caused the loss of the nation will be.
رييس دولت دهم با اعلام اينکه جمعيت خانوار در کشور به زير چهار نفر رسيده است، تصريح کرد: تعداد بچههاي يک خانواده در کشور کمتر از دو نفر شده است، اين موجب سقوط يک ملت خواهد شد. Head of Government announced that the tenth of households in the country has been under four, asserted: the number of children in a family has less than two, this will cause the fall of a nation. متاسفانه کساني که شعار کنترل جمعيت را سرميدادند به نتيجه برعکس آن رسيدند. Unfortunately, those who control the slogan Srmydadnd population reached its contrary conclusion. زيرا امروز شاهد آن هستيم که مردم فقير فرزندان بيشتري دارند اما کساني که از امکانات خوبي برخوردارند فرزند کمتر دارند. Because today we are seeing that poor children have more opportunities for those who have a child less good.
رييسجمهوري در بخش ديگري از سخنان خود با تاکيد بر به روز کردن سيستمها و امکانات کار در کشور، خاطرنشان کرد: بايد با مديريت درست از هزينههاي اضافي کم کرد و البته سيستمها را بهروز کرد. President in another part of his speech with an emphasis on updating systems and facilities to work in the country, noted: it must properly manage the additional costs low, and of course, to update systems. همچنين بايد براي ابتکار عمل کارگران پاداشي تعيين شود. You should also reward the workers for the initiative to be determined.
احمدينژاد خطاب به کارگران گفت: در هر کجاي کشور که کار ميکنيد، به ثروت عمومي ملت ايران توجه داشته باشيد. Ahmadinejad addressed the workers said: "anywhere in the country you work, the general wealth of nations note. اگر بازدهي کار شما بالا باشد ميزان اين ثروت عمومي هم افزايش خواهد يافت. If your work is high level of efficiency this will increase the public wealth. بنابراين تا روزي که کار ميکنيد متعهد و دلسوز باشيد. So until the day you work you are committed and compassionate.
وي همچنين خطاب به وزير کار و امور اجتماعي ،اذعان کرد: فضاي کار کشور را به گونهاي اداره کنيد تا اختلافي پيدا نشود. He also addressed to the Minister of Labor and Social Affairs, acknowledged: the country's working environment can somehow manage to not be disputed. شما مامور انجام عدالت هستيد اما عدالت را طوري اجرا کنيد که به سمت جامعه کارگري برود. Your agent do you justice, but justice run so that the community workers go.
رييسجمهوري با انتقاد از فعاليت شرکتهاي ثالث براي تامين نيروي کار تصريح کرد: بايد نقش شرکتهاي ثالث در رابطه ميان کارگر و کارفرما از ميان برود تا منافع بيشتري به کارگران برسد. President criticized the activities of third party companies to provide workforce emphasized: should the role of third-party companies in the relationship between workers and employers eliminating benefits to reach more workers. البته ما چندينبار در دولت براي حل اين مشکل مصوباتي را ابلاغ کرديم اما بسياري از افراد از عملياتي شدن آن جلوگيري کردند. Of course, we Chndynbar government to solve this problem we have delivered Msvbaty but many people were prevented from its operations. البته با پيگيريهايي که انجام شد نشان داده که به غير از بخش حملونقل و فضاي سبز، بقيه بخشهاي دولت نقش شرکتهاي ثالث را براي تامين نيروي کار حذف کردند. Pygyryhayy course that was shown that except for transportation and green space sector, other government departments as third-party companies to provide workforce eliminated.
رييس دولت دهم با اشاره به اقدامات دولت براي حل مشکل بيمه کارگران ساختماني بيان کرد: اقدامات لازم براي حل اين مشکل انجام شده و به زودي وزير رفاه اين موضوع را ابلاغ خواهد کرد. I pointed to the head of government measures to solve the problem of building insurance, workers said: measures necessary to solve this problem done soon and welfare minister will deliver on this issue.
احمدينژاد همچنين بر پيگيري اختصاص سهام عدالت به کارگران تاکيد کرد و گفت: اين موضوع را پيگيري ميکنيم و حتما به نتيجه ميرسانيم. Ahmadinejad also follow up on the shares allocated to workers emphasized justice and said: "We followed up this issue and certainly the result of writing.
وي همچنين گفت: به بنياد نخبگان سفارش ميکنم که براي پذيرفتن ابداعات و اختراعات کارگران با مماشات بيشتري برخورد کند. He also said: "Foundation for the elite order that I accept the innovations and inventions workers to deal with the more appeasement.
سيام**9144**9170 Siam ** 9144 ** 9170

ليگ برتر

Head of the assessment exercise capital derby
"Ali Said Loo" the head of the Physical Education Organization said that "I hope worthy team won the derby capital in the current week."
Sixty right capital derby on Wednesday this week between the two most popular team independence and Perispolis will be held.
The game week in the framework of twenty-sixth premier league Soccer Iran clubs will be held.
The head of the Physical Education Organization on Monday in an interview with IRNA sports reporter also said: "I hope with observance of moral points and technical, every team that can be more appropriate in this meeting is to win.
سعیدلو said: the people of Iran Football to a good and I hope massrs 60 righth righth derby to echelon capital popular with spectators and more appropriate team to three points of the game of it.
He pointed out that in some cases sensitivity and characteristics of a special meeting, managers, technical staff and players to play cautiously and is the subject, to some extent the beauty of the soccer decreases.
The head of the sport of the country said: "I hope in this game, Susceptivity s by the yearneth.
Said Loo stressed that the president of the football federation and two club and Perispolis independence have said that people understand football. By maintaining fair play and observance of moral dimensional on technical issues to focus in the end of this game proud.
8071

At the end news/Islamic Republic news agency (IRNA)/news code 930038
Converting Microsoft Word Document to PDF format using OpenOffice.org (Portable) PDF Print E-mail
Written by مدیر کل سایت   
Sunday, 21 February 2010 13:13
There are no translations available.

Convert Microsoft Word Documents to PDF using OpenOffice.org

Contents

Introduction

This article explains a way to use OpenOffice.org Portable to convert a Microsoft Word Document to PDF Format. The purpose of using OpenOffice.org Portable is not having to install OpenOffice.org on client machines. The operation is very simple, we just execute OpenOffice.org Portable - as if we were running it from the command line - from our code, with some arguments that indicate it to run a macro which handles the conversion.

To my knowledge, there are two articles that explain how to do this conversion, on CodeProject:

The former is a very complicated way and you have to install MS-Office. You would have this installed anyway if you are working with Word documents though; the second one requires that you have installed OpenOffice.org, which is not that bad but I wanted to avoid the task of installing it by using an XCopy kind of method.

Requirements

Before running the demo or your application using the code, you need to download and extract OpenOffice.org Portable into the same directory the application resides in. Version 2.0.3 or later should work fine due to a bug that has been fixed, and allows us to run OpenOffice.org Portable hidden. After you have done that, you will need to add the following macro.

The macro

Execute OpenOfficePortable.exe inside the OpenOfficePortable\ directory where you extracted the files; the first time you run it, a wizard will show up. Follow the instructions, you don't need to register for the application to work. After you've done that you should see the OpenOffice.org main window.

Choose Tools->Macros->Organize Macros->OpenOffice.org Basic

OpenOffice.org main window

Click "Organizer..." and then create a new library within the tab Libraries, name it "ConversionLibrary"

Create the new library

Change to the Modules tab, select "ConversionLibrary", and create a new module called "PDFConversion"

create the new module

Once you've done that, click the Edit button to open the macro editor. The default is to already have a macro called Main. You can replace it or leave it. Paste the following code into the editor, save and close:

Collapse
REM ***** BASIC *****
Sub ConvertWordToPDF( cSourceFile , cDestinationFile)
cURL = ConvertToURL( cSourceFile )
' Open the document.

' Just blindly assume that the document
' is of a type that OOo will
' correctly recognize and open --
' without specifying an import filter.
oDoc = StarDesktop.loadComponentFromURL( cURL, "_blank", 0, _

Array(MakePropertyValue( "Hidden", True ),) )

cURL = ConvertToURL( cDestinationFile )

' Save the document using a filter.

oDoc.storeToURL( cURL, _
Array(MakePropertyValue( "FilterName", "writer_pdf_Export" ),)
Doc.close( True )

o
End Sub
Function MakePropertyValue( Optional cName As String, _
Optional uValue ) As com.sun.star.beans.PropertyValue
Dim oPropertyValue As New com.sun.star.beans.PropertyValue
If Not IsMissing( cName ) Then
oPropertyValue.Name = cName
EndIf
If Not IsMissing( uValue ) Then
oPropertyValue.Value = uValue
EndIf
MakePropertyValue() = oPropertyValue
End Function

The original macro was found in the OpenOffice.org forum.

I modified it to fit my needs, so can you.

Now you should be able to run the demo application or your own application. If you've done this, you probably have noticed an OpenOffice.org Portable splash screen. To disable this behavior, read the Hiding OpenOffice.org Portable splash screen section below. If you used different names for the library, module, macro, directory of
OpenOffice.org Portable or the executable name; you should change those values in the application configuration file (UsingOpenOffice.exe.config in the demo).

Note

If you are using the code in your own application, you must add an application configuration file with the next keys in the appSettings section, or an exception will be thrown.

Collapse
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="PortableOpenOfficeDirectory"
value="OpenOfficePortable\"></add>
<add key="PortableOpenOfficeExecutable"
value="OpenOfficePortable.exe"></add>
<add key="PortableOpenOfficeConversionLibrary"
value="ConversionLibrary"></add>
<add key="PortableOpenOfficeConversionModule"
value="PDFConversion"></add>
<add key="PortableOpenOfficeConversionFunction"
value="ConvertWordToPDF"></add>
</appSettings>
</configuration>

Hiding OpenOffice.org Portable splash screen

To hide the OpenOffice.org Portable splash screen, copy the file OpenOfficePortable.ini from the OpenOfficePortable\Other\OpenOfficePortableSource directory to
OpenOfficePortable\ and edit it changing the value of DisableSplashScreen=false to DisableSplashScreen=true. I've also changed the value ofWaitForOpenOffice=false to WaitForOpenOffice=true. Read the documentation of OpenOffice.org Portable for more options.

Copy and modify the configuration file

Collapse
[OpenOfficePortable]
OpenOfficeDirectory=App\openoffice
SettingsDirectory=Data\settings
AdditionalParameters= WaitForOp
OpenOfficeExecutable=soffice.ex
eenOffice=true RunDataLocally=false
DisableSplashScreen=true

Warning

There are known issues on using OpenOffice.org Portable, you should read at least this article. If you can run OpenOffice.org Portable and do the conversion manually, chances for the code to run properly are better.

Long Paths and Odd Characters - OpenOffice.org doesn't like running from overly long paths. So, while it will work directly from your desktop... if you have it within a subdirectoy on your desktop, it will probably fail claiming that some files are corrupted. OpenOffice.org also doesn't like certain characters like dollar signs in the path. This is why it's best to have the OpenOfficePortable directory in the root of your drive, or within a PortableApps directory in the root of your drive. The exact length is being determined and the next release of the launcher will check for this.

So, try to locate your application or the demo in a short path so that the OpenOffice.org Portable path is for example: c:\Program Files\Your Company\Your Program\OpenOfficePortable will probably work, but if you try something like: C:\Documents and Settings\Your User\My Documents\Visual Studio Projects\Your Project\bin\Debug\OpenOfficePortable will probably fail.

Using the code

After you've done everything that is required - downloaded OpenOffice.org Portable and extracted it into the same folder of the application, added the macro and configured the application and the OpenOffice.org Portable configuration files if needed - you may use the code simply by adding the file OpenOffice.cs to your project or adding a reference to the DLL and then calling it in the following manner:

Collapse
//using PortableOpenOffice;//uncomment this if you added a reference to the dll
OpenOffice.Instance.ConvertToPDF(SourceFileName,DestinationFileName);

Points of Interest

Even though this article explains how to use OpenOffice.org Portable to convert a Microsoft Word Document to PDF Format, it could be used to do many other conversions. You only need to modify the macro used in this example. Even without modifying the macro, you could do conversions from any OpenOffice.org supported format to PDF because we relied - not specifying any import filter in the macro - that the document would be recognized and opened by the OpenOffice.org.

Conclusion

This document presented a very simple way to convert Microsoft Word Document to PDF format. All the real work is done by OpenOffice.org so be sure to visit their site and read the license on their software. You should also visit this website which has done a great work on doing many applications portable (for us not having to install software).

 

Pictures Products

Newsletter

Newsletter with the latest content and changes to your site simply aware










Advertise

poll

IR-WIN site to see how
 

Calendar

 
Wednesday
2010
Sep
8
 

latest news IT

Satellite, overcoming gravity to ascend hoisted on the sky

confidence-building and satellite, driving engine for the development of other advanced regards is considered to be on the other shows and scientific management can be up in the countries of this technology.

 

According to IRNA, Iranian success researchers hope the satellite with the satellite 2 ambassador last year in the first practical step in its native space technology is considered to be able to name of Iran in the few member countries registered world space club.
Also this year with the unveiling of the national satellite television station, national Mesbah 2 satellite and satellite promise of Science and Industry and also the engine satellite Simurgh that day 14 February with the national day was done space technology, ground for presence of Iran in the arena space has been provided.
Satellite rise can be three years to remain in space, 100 kilograms and height in orbit 500 miles from the ground. The Satellite "Simurgh" You can also shipments weighing 100 kilograms in height 500 km from the earth.
according to experts, for Satellite is necessary many sciences and arts beside each other to such a project to be enforced.
***A satellite how to throw the circuit.
To put to a satellite in orbit of the earth, the force is needed for a lot. This force, ماهواره‌بر (carrying missiles) production. Satellite to be in orbit in high altitude more than 200 miles from the earth's surface above the speed of 29000 kilometers per hour.
Satellite ‌بر‌ها missiles to form a stage, with chemical burning fuel. . .
Read more...
Copyright © 2010 سیستم عامل جدید ایرانیان v2.88. All Rights Reserved.
ChakadCo! CopyRight & PowerBy GNU/GPL License.