<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; OOo Basic: экспорт документа в PDF]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=1392&amp;type=atom" />
	<updated>2008-04-24T07:29:39Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=1392</id>
		<entry>
			<title type="html"><![CDATA[OOo Basic: экспорт документа в PDF]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=10599#p10599" />
			<content type="html"><![CDATA[<p>Автоматическое сохранение текущего документа в PDF по указанному пути:<br /></p><div class="codebox"><pre><code>Sub SaveToPdf()
    Dim oDisp, oFrame
    Dim a(2) As New com.sun.star.beans.PropertyValue
    a(0).Name = &quot;URL&quot;        : a(0).Value = &quot;file:///c:/temp/my_file_name_.pdf&quot;
    a(1).Name = &quot;FilterName&quot; : a(1).Value = &quot;writer_pdf_Export&quot;
    oFrame = ThisComponent.CurrentController.Frame
    oDisp = createUnoService(&quot;com.sun.star.frame.DispatchHelper&quot;)
    oDisp.executeDispatch(oFrame, &quot;.uno:ExportDirectToPDF&quot;, &quot;&quot;, 0, a())
End Sub</code></pre></div>]]></content>
			<author>
				<name><![CDATA[The gray Cardinal]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=2</uri>
			</author>
			<updated>2008-04-24T07:29:39Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=10599#p10599</id>
		</entry>
</feed>
