<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; OOo Basic: копи-пастинг данных программно]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=1393&amp;type=atom" />
	<updated>2008-04-24T07:50:08Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=1393</id>
		<entry>
			<title type="html"><![CDATA[OOo Basic: копи-пастинг данных программно]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=10600#p10600" />
			<content type="html"><![CDATA[<p>Пример для Calc.<br />Позиционируется на ячейке $B$3, выполняет команду &quot;Copy&quot;, затем позиционируется на ячейке $A$1 и выполняет команду &quot;Paste&quot;.<br /></p><div class="codebox"><pre><code>Dim oDisp, oFrame
Dim a(1) As New com.sun.star.beans.PropertyValue
a(0).Name = &quot;ToPoint&quot; : a(0).Value = &quot;$B$3&quot;
oFrame = ThisComponent.CurrentController.Frame
oDisp = createUnoService(&quot;com.sun.star.frame.DispatchHelper&quot;)
oDisp.executeDispatch(oFrame, &quot;.uno:GoToCell&quot;, &quot;&quot;, 0, a())
oDisp.executeDispatch(oFrame, &quot;.uno:Copy&quot;,     &quot;&quot;, 0, Array())
a(0).Value = &quot;$A$1&quot;
oDisp.executeDispatch(oFrame, &quot;.uno:GoToCell&quot;, &quot;&quot;, 0, a())
oDisp.executeDispatch(oFrame, &quot;.uno:Paste&quot;,    &quot;&quot;, 0, Array())</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:50:08Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=10600#p10600</id>
		</entry>
</feed>
