<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>WinDev LPR (DOS) Function</title>
        <description> Hello

My solution will not work:
For a exotic Labelprinter I have to send Binary data direct to the printer.
I do this creating a File with the data. 
Then I create a DOS Batch file as follow:
Cmd is string = &amp;quot;c:\windows\system32\LPR.exe  -S &amp;quot; + Computername + &amp;quot; -P &amp;quot; + Printername + &amp;quot; &amp;quot; + Filename + &amp;quot; -ol&amp;quot;
an write it to my disk: fSaveText(&amp;quot;C:\Temp\Batch.bat&amp;quot;, Cmd)

This Batch can I start manualy without any problems, it works.
But unfortunately I am not able to start the batch by WinDev
I tryed &amp;#039;exerun&amp;#039;, &amp;#039;DDEstart&amp;#039;  (DDEStart(&amp;quot;C:\Temp\Batch.bat&amp;quot;))
whatever i try, it does&amp;#039;nt work

Anybody can help me ?

Thanks in advance 
Erich</description>
        <link>https://www.wxforum.info/read.php?27161,794633,794633#msg-794633</link>
        <lastBuildDate>Wed, 20 May 2026 11:47:01 +0200</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://www.wxforum.info/read.php?27161,794633,794633#msg-794633</guid>
            <title>WinDev LPR (DOS) Function</title>
            <link>https://www.wxforum.info/read.php?27161,794633,794633#msg-794633</link>
            <description><![CDATA[ Hello<br />
<br />
My solution will not work:<br />
For a exotic Labelprinter I have to send Binary data direct to the printer.<br />
I do this creating a File with the data. <br />
Then I create a DOS Batch file as follow:<br />
Cmd is string = &quot;c:\windows\system32\LPR.exe  -S &quot; + Computername + &quot; -P &quot; + Printername + &quot; &quot; + Filename + &quot; -ol&quot;<br />
an write it to my disk: fSaveText(&quot;C:\Temp\Batch.bat&quot;, Cmd)<br />
<br />
This Batch can I start manualy without any problems, it works.<br />
But unfortunately I am not able to start the batch by WinDev<br />
I tryed &#039;exerun&#039;, &#039;DDEstart&#039;  (DDEStart(&quot;C:\Temp\Batch.bat&quot;))<br />
whatever i try, it does&#039;nt work<br />
<br />
Anybody can help me ?<br />
<br />
Thanks in advance <br />
Erich]]></description>
            <dc:creator>erich45</dc:creator>
            <category>WinDev Solutions</category>
            <pubDate>Tue, 30 Mar 2021 16:39:47 +0200</pubDate>
        </item>
    </channel>
</rss>
