<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; OOo Basic: копи-пастинг данных программно]]></title>
		<link>http://forum.script-coding.com/viewtopic.php?id=1393</link>
		<atom:link href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=1393&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «OOo Basic: копи-пастинг данных программно».]]></description>
		<lastBuildDate>Thu, 24 Apr 2008 07:50:08 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[OOo Basic: копи-пастинг данных программно]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=10600#p10600</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (The gray Cardinal)]]></author>
			<pubDate>Thu, 24 Apr 2008 07:50:08 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=10600#p10600</guid>
		</item>
	</channel>
</rss>
