<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Commenti a: Ole Office Automation Word Replace di una stringa [Delphi]</title> <atom:link href="http://www.evilripper.net/2007/11/13/ole-office-automation-word-replace-di-una-stringa-delphi/feed/" rel="self" type="application/rss+xml" /><link>http://www.evilripper.net/2007/11/13/ole-office-automation-word-replace-di-una-stringa-delphi/</link> <description>A programmer&#039;s work is never done</description> <lastBuildDate>Sun, 05 Feb 2012 21:50:44 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3</generator> <item><title>Di: Evilripper</title><link>http://www.evilripper.net/2007/11/13/ole-office-automation-word-replace-di-una-stringa-delphi/#comment-311</link> <dc:creator>Evilripper</dc:creator> <pubDate>Thu, 25 Jun 2009 17:57:44 +0000</pubDate> <guid
isPermaLink="false">http://blog.bpcsoluzioni.com/2007/11/13/ole-office-automation-word-replace-di-una-stringa-delphi/#comment-311</guid> <description>Son quasi 2 anni che non uso piu&#039; delphi... credo che lentamente sia destinato scomparire lasciando posto a c# o java.
Comunque a parte questo io non ne ho idea di come risolvere la cosa che hai chiesto l&#039;unica e&#039; rivolgersi al forum
ufficiale
https://forums.codegear.com/category.jspa?categoryID=12
oppure prova postare la tua domanda su questo newsgroup
http://groups.google.com/group/it.comp.lang.delphi/topics?hl=en
dove ci sono persone veramente competenti(o meglio anni fa c&#039;erano e&#039; una vita che non ci vado piu&#039;)
ciao &amp; in bocca al lupo!</description> <content:encoded><![CDATA[<p>Son quasi 2 anni che non uso piu&#8217; delphi&#8230; credo che lentamente sia destinato scomparire lasciando posto a c# o java.</p><p>Comunque a parte questo io non ne ho idea di come risolvere la cosa che hai chiesto l&#8217;unica e&#8217; rivolgersi al forum<br
/> ufficiale<br
/> <a
href="https://forums.codegear.com/category.jspa?categoryID=12" rel="nofollow">https://forums.codegear.com/category.jspa?categoryID=12</a></p><p>oppure prova postare la tua domanda su questo newsgroup<br
/> <a
href="http://groups.google.com/group/it.comp.lang.delphi/topics?hl=en" rel="nofollow">http://groups.google.com/group/it.comp.lang.delphi/topics?hl=en</a></p><p>dove ci sono persone veramente competenti(o meglio anni fa c&#8217;erano e&#8217; una vita che non ci vado piu&#8217;)</p><p>ciao &amp; in bocca al lupo!</p> ]]></content:encoded> </item> <item><title>Di: Enrico</title><link>http://www.evilripper.net/2007/11/13/ole-office-automation-word-replace-di-una-stringa-delphi/#comment-310</link> <dc:creator>Enrico</dc:creator> <pubDate>Thu, 25 Jun 2009 15:03:15 +0000</pubDate> <guid
isPermaLink="false">http://blog.bpcsoluzioni.com/2007/11/13/ole-office-automation-word-replace-di-una-stringa-delphi/#comment-310</guid> <description>Scusate non mi ero accorto subito che il forum è in italiano... no comment!
Visto anche il mio inglese maccheronico ri-posto il tutto.
Come provavo a dire, ho un servizio scritto in Delphi che, utilizzando Word via OLEObject, apre dei documenti RTF e li stampa. Ora, il tutto è andato a gonfie vele fino a quando sono nati Vista e il suo server Windows 2008.
Pare che Microsoft ha rivoluzionato la gestione del desktop 0 (o ring 0 o strato service come vogliamo chiamarlo) e questo porta al problema che descrivo.
Premetto che il servizio gira con un utente specifico che ha autorizzazioni Administrators. L&#039;applicazione apre correttamente Word, ma quando cerco di aprire il documento con Documents.Open(&quot;nomefile&quot;) non torna alcun errore. Posto giusto due righe di codice:
w := CreateOleObject(&#039;word.application&#039;);
w.Options.PrintBackground := false;
wdoc := w.Documents.Open(&#039;c:\tmp\pippo.rtf&#039;);
wdoc rimane sempre nil!
Questo, naturalmente, porta ad una NON apertura del documento e ad una serie di errori.
Sapete darmi una mano?
Grazie mille per l&#039;aiuto!!
Enrico</description> <content:encoded><![CDATA[<p>Scusate non mi ero accorto subito che il forum è in italiano&#8230; no comment!<br
/> Visto anche il mio inglese maccheronico ri-posto il tutto.</p><p>Come provavo a dire, ho un servizio scritto in Delphi che, utilizzando Word via OLEObject, apre dei documenti RTF e li stampa. Ora, il tutto è andato a gonfie vele fino a quando sono nati Vista e il suo server Windows 2008.</p><p>Pare che Microsoft ha rivoluzionato la gestione del desktop 0 (o ring 0 o strato service come vogliamo chiamarlo) e questo porta al problema che descrivo.</p><p>Premetto che il servizio gira con un utente specifico che ha autorizzazioni Administrators. L&#8217;applicazione apre correttamente Word, ma quando cerco di aprire il documento con Documents.Open(&#8220;nomefile&#8221;) non torna alcun errore. Posto giusto due righe di codice:</p><p>w := CreateOleObject(&#8216;word.application&#8217;);<br
/> w.Options.PrintBackground := false;<br
/> wdoc := w.Documents.Open(&#8216;c:\tmp\pippo.rtf&#8217;);</p><p>wdoc rimane sempre nil!</p><p>Questo, naturalmente, porta ad una NON apertura del documento e ad una serie di errori.</p><p>Sapete darmi una mano?</p><p>Grazie mille per l&#8217;aiuto!!</p><p>Enrico</p> ]]></content:encoded> </item> <item><title>Di: Enrico</title><link>http://www.evilripper.net/2007/11/13/ole-office-automation-word-replace-di-una-stringa-delphi/#comment-309</link> <dc:creator>Enrico</dc:creator> <pubDate>Thu, 25 Jun 2009 14:52:52 +0000</pubDate> <guid
isPermaLink="false">http://blog.bpcsoluzioni.com/2007/11/13/ole-office-automation-word-replace-di-una-stringa-delphi/#comment-309</guid> <description>Hi. This code runs in a interactive environment. I wrote a program (winservice) that opens and prints documents using Word OLE server, but it runs only in a Windows XP or Windows 2003 environment. In Windows 2008 or WinVista my program starts, but when it tries to use Word OLE methos it doesn&#039;t work. For example, the method Application.Documents.Open(&quot;mydoc.doc&quot;) doesn&#039;t return any error, but the document isn&#039;t open, so I can&#039;t print it.
Can anyone help me?.
Thank&#039;s in advance.
Enrico</description> <content:encoded><![CDATA[<p>Hi. This code runs in a interactive environment. I wrote a program (winservice) that opens and prints documents using Word OLE server, but it runs only in a Windows XP or Windows 2003 environment. In Windows 2008 or WinVista my program starts, but when it tries to use Word OLE methos it doesn&#8217;t work. For example, the method Application.Documents.Open(&#8220;mydoc.doc&#8221;) doesn&#8217;t return any error, but the document isn&#8217;t open, so I can&#8217;t print it.</p><p>Can anyone help me?.</p><p>Thank&#8217;s in advance.</p><p>Enrico</p> ]]></content:encoded> </item> <item><title>Di: extreme forced fuck</title><link>http://www.evilripper.net/2007/11/13/ole-office-automation-word-replace-di-una-stringa-delphi/#comment-308</link> <dc:creator>extreme forced fuck</dc:creator> <pubDate>Wed, 10 Jun 2009 16:34:58 +0000</pubDate> <guid
isPermaLink="false">http://blog.bpcsoluzioni.com/2007/11/13/ole-office-automation-word-replace-di-una-stringa-delphi/#comment-308</guid> <description>mm... cognitively.</description> <content:encoded><![CDATA[<p>mm&#8230; cognitively.</p> ]]></content:encoded> </item> </channel> </rss>
