<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Worddatei (doc) mit WordViewer öffnen geht nicht]]></title><description><![CDATA[<p>Hallo habe ein Problem ein Worddokument mit dem Wordviewer zu öffnen.</p>
<p>Das Betriebssystem ist WindowsNT. Ich habe den WordViewer siehe folgenden Link installiert:<br />
<a href="http://www.bv-agrar.de/06-programme/hinweise.htm#Word" rel="nofollow">http://www.bv-agrar.de/06-programme/hinweise.htm#Word</a></p>
<p>Hier mal meine versuche wie ich sie bisher gemacht habe:</p>
<pre><code class="language-cpp">void __fastcall TForm1::Button1Click(TObject *Sender)
{
  String Datei;
  Datei = ExtractFilePath(ParamStr(0)) + &quot;test.doc&quot;;
  int slResuslt=(int)ShellExecute(Form1-&gt;Handle,0,&quot;C:\Programme\WordView\WordView.EXE&quot;, Datei.c_str() ,0,SW_SHOWNORMAL);
  if(slResuslt &lt;= 32)
  {
    Application-&gt;MessageBoxA(IntToStr(slResuslt).c_str(), &quot;Programm nicht vorhanden&quot;, MB_OK);
  }
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Button2Click(TObject *Sender)
{
  String Datei;
  Datei = ExtractFilePath(ParamStr(0)) + &quot;test.doc&quot;;
  int slResuslt=(int)ShellExecute(Form1-&gt;Handle,0,&quot;open&quot;, Datei.c_str() ,0,SW_SHOWNORMAL);
  if(slResuslt &lt;= 32)
  {
    Application-&gt;MessageBoxA(IntToStr(slResuslt).c_str(), &quot;Programm nicht vorhanden&quot;, MB_OK);
  }
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button3Click(TObject *Sender)
{
String rt;
STARTUPINFO si;
PROCESS_INFORMATION pi;
memset(&amp;si,0,sizeof(STARTUPINFO));
si.cb=sizeof(STARTUPINFO);
si.dwFlags=STARTF_USESHOWWINDOW;
si.wShowWindow=SW_SHOW;
rt=&quot;C:\Programme\WordView\WordView.exe&quot;;
if(!CreateProcess(NULL,rt.c_str(),NULL,NULL,false,0,0,0,&amp;si,&amp;pi))
	{
	Application-&gt;MessageBox(&quot;Fehler beim Aufruf von test.exe&quot;,&quot;wordview.exe&quot;,MB_APPLMODAL|MB_ICONSTOP|MB_OK);
	return;
	}
WaitForSingleObject(pi.hProcess,INFINITE);
CloseHandle(pi.hThread);
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button5Click(TObject *Sender)
{
  String Datei;
  Datei = ExtractFilePath(ParamStr(0)) + &quot;test.doc&quot;;
  int slResuslt=(int)ShellExecute(Form1-&gt;Handle,0,0, Datei.c_str() ,0,SW_SHOWNORMAL);
  if(slResuslt &lt;= 32)
  {
    Application-&gt;MessageBoxA(IntToStr(slResuslt).c_str(), &quot;Programm nicht vorhanden&quot;, MB_OK);
  }
}
</code></pre>
<p>Ich habe auch alle Möglichkeiten auch so versucht, wo ich den Pfad nicht angegeben habe, sondern nur WordView.exe</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/152439/worddatei-doc-mit-wordviewer-öffnen-geht-nicht</link><generator>RSS for Node</generator><lastBuildDate>Sun, 09 Aug 2026 01:40:19 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/152439.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 06 Jul 2006 11:01:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Worddatei (doc) mit WordViewer öffnen geht nicht on Thu, 06 Jul 2006 11:01:47 GMT]]></title><description><![CDATA[<p>Hallo habe ein Problem ein Worddokument mit dem Wordviewer zu öffnen.</p>
<p>Das Betriebssystem ist WindowsNT. Ich habe den WordViewer siehe folgenden Link installiert:<br />
<a href="http://www.bv-agrar.de/06-programme/hinweise.htm#Word" rel="nofollow">http://www.bv-agrar.de/06-programme/hinweise.htm#Word</a></p>
<p>Hier mal meine versuche wie ich sie bisher gemacht habe:</p>
<pre><code class="language-cpp">void __fastcall TForm1::Button1Click(TObject *Sender)
{
  String Datei;
  Datei = ExtractFilePath(ParamStr(0)) + &quot;test.doc&quot;;
  int slResuslt=(int)ShellExecute(Form1-&gt;Handle,0,&quot;C:\Programme\WordView\WordView.EXE&quot;, Datei.c_str() ,0,SW_SHOWNORMAL);
  if(slResuslt &lt;= 32)
  {
    Application-&gt;MessageBoxA(IntToStr(slResuslt).c_str(), &quot;Programm nicht vorhanden&quot;, MB_OK);
  }
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Button2Click(TObject *Sender)
{
  String Datei;
  Datei = ExtractFilePath(ParamStr(0)) + &quot;test.doc&quot;;
  int slResuslt=(int)ShellExecute(Form1-&gt;Handle,0,&quot;open&quot;, Datei.c_str() ,0,SW_SHOWNORMAL);
  if(slResuslt &lt;= 32)
  {
    Application-&gt;MessageBoxA(IntToStr(slResuslt).c_str(), &quot;Programm nicht vorhanden&quot;, MB_OK);
  }
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button3Click(TObject *Sender)
{
String rt;
STARTUPINFO si;
PROCESS_INFORMATION pi;
memset(&amp;si,0,sizeof(STARTUPINFO));
si.cb=sizeof(STARTUPINFO);
si.dwFlags=STARTF_USESHOWWINDOW;
si.wShowWindow=SW_SHOW;
rt=&quot;C:\Programme\WordView\WordView.exe&quot;;
if(!CreateProcess(NULL,rt.c_str(),NULL,NULL,false,0,0,0,&amp;si,&amp;pi))
	{
	Application-&gt;MessageBox(&quot;Fehler beim Aufruf von test.exe&quot;,&quot;wordview.exe&quot;,MB_APPLMODAL|MB_ICONSTOP|MB_OK);
	return;
	}
WaitForSingleObject(pi.hProcess,INFINITE);
CloseHandle(pi.hThread);
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button5Click(TObject *Sender)
{
  String Datei;
  Datei = ExtractFilePath(ParamStr(0)) + &quot;test.doc&quot;;
  int slResuslt=(int)ShellExecute(Form1-&gt;Handle,0,0, Datei.c_str() ,0,SW_SHOWNORMAL);
  if(slResuslt &lt;= 32)
  {
    Application-&gt;MessageBoxA(IntToStr(slResuslt).c_str(), &quot;Programm nicht vorhanden&quot;, MB_OK);
  }
}
</code></pre>
<p>Ich habe auch alle Möglichkeiten auch so versucht, wo ich den Pfad nicht angegeben habe, sondern nur WordView.exe</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1092392</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1092392</guid><dc:creator><![CDATA[bronstein]]></dc:creator><pubDate>Thu, 06 Jul 2006 11:01:47 GMT</pubDate></item><item><title><![CDATA[Reply to Worddatei (doc) mit WordViewer öffnen geht nicht on Thu, 06 Jul 2006 11:05:06 GMT]]></title><description><![CDATA[<p>Was mir erstmal ins auge sticht ist das:<br />
rt=&quot;C:\Programme\WordView\WordView.exe&quot;;<br />
so geht das nicht.<br />
rt=&quot;C:\\Programme\\WordView\\WordView.exe&quot;;<br />
so ists richtig...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1092394</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1092394</guid><dc:creator><![CDATA[banned_EinM]]></dc:creator><pubDate>Thu, 06 Jul 2006 11:05:06 GMT</pubDate></item><item><title><![CDATA[Reply to Worddatei (doc) mit WordViewer öffnen geht nicht on Thu, 06 Jul 2006 11:15:00 GMT]]></title><description><![CDATA[<p>Davon abgesehen: &quot;geht nicht&quot; ist keine ausreichende Problembeschreibung.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1092404</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1092404</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Thu, 06 Jul 2006 11:15:00 GMT</pubDate></item><item><title><![CDATA[Reply to Worddatei (doc) mit WordViewer öffnen geht nicht on Thu, 06 Jul 2006 11:47:49 GMT]]></title><description><![CDATA[<p>Danke genau das war der fehler mit dem \\</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1092429</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1092429</guid><dc:creator><![CDATA[bronstein]]></dc:creator><pubDate>Thu, 06 Jul 2006 11:47:49 GMT</pubDate></item></channel></rss>