<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Print from visualisation</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/07d53f689b/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/07d53f689b/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/07d53f689b/</id><updated>2020-07-14T07:49:08.668000Z</updated><subtitle>Recent posts to Print from visualisation</subtitle><entry><title>Print from visualisation</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/07d53f689b/?limit=25#8fe0" rel="alternate"/><published>2020-07-14T07:49:08.668000Z</published><updated>2020-07-14T07:49:08.668000Z</updated><author><name>falcon</name><uri>https://forge.codesys.com/u/falcon/</uri></author><id>https://forge.codesys.com36b4bb1165811e3f516af3899f9e597ee76b59ea</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;if i want to store some runtime data in a text file. what is the way to do that ? please guide , i am stuck :-(&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Print from visualisation</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/07d53f689b/?limit=25#c42d" rel="alternate"/><published>2020-07-14T07:49:08.610000Z</published><updated>2020-07-14T07:49:08.610000Z</updated><author><name>falcon</name><uri>https://forge.codesys.com/u/falcon/</uri></author><id>https://forge.codesys.comf77289772effa7854ce5592f27fcf25e5ad6bdfc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;if i want to store some runtime data in a text file. what is the way to do that ? please guide , i am stuck :-(&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Print from visualisation</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/07d53f689b/?limit=25#ab30" rel="alternate"/><published>2020-02-27T14:07:29.889000Z</published><updated>2020-02-27T14:07:29.889000Z</updated><author><name>PhGo</name><uri>https://forge.codesys.com/u/phgo/</uri></author><id>https://forge.codesys.com26dd9a8d77e3e17bcb64f8700f398de84833496d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you! &lt;br/&gt;
I haved try this code with sucess  &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt; &lt;span class="nt"&gt;CreateCmdResult&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="nt"&gt;SysProcess&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;SysProcessCreate&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;pszApplication&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="s1"&gt;'C:\windows\notepad.exe'&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; 
&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt;  &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;&lt;span class="nt"&gt;pszCommandLine&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="s1"&gt;'/PT "C:\File2print\file.txt" "PDFCreator" '&lt;/span&gt; &lt;span class="o"&gt;,&lt;/span&gt;&lt;span class="nt"&gt;ulHide&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="nt"&gt;0&lt;/span&gt; &lt;span class="o"&gt;,&lt;/span&gt;&lt;span class="nt"&gt;ADR&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;pResult1&lt;/span&gt;&lt;span class="o"&gt;));&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;For notepad &lt;br/&gt;
There is a limited set of command line options:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;A&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;filename&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="k"&gt;open&lt;/span&gt; &lt;span class="n"&gt;file&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;ansi&lt;/span&gt;
&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;W&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;filename&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="k"&gt;open&lt;/span&gt; &lt;span class="n"&gt;file&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;unicode&lt;/span&gt;
&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;P&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;filename&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;print&lt;/span&gt; &lt;span class="n"&gt;filename&lt;/span&gt;
&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;PT&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;filename&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;printername&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;driverdll&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;port&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;print&lt;/span&gt; &lt;span class="n"&gt;filename&lt;/span&gt; &lt;span class="k"&gt;to&lt;/span&gt; &lt;span class="n"&gt;designated&lt;/span&gt; &lt;span class="n"&gt;printer&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</summary></entry><entry><title>Print from visualisation</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/07d53f689b/?limit=25#b309" rel="alternate"/><published>2020-02-27T14:07:28.950000Z</published><updated>2020-02-27T14:07:28.950000Z</updated><author><name>timvh</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.coma8132e8954769e4f6a76fc34de4065013d66cf4c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I'm not sure if it is the best solution, but an option could be to start a system command on the PC. &lt;br/&gt;
Add the SysProcess library to your project.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;sCommandString&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;STRING&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="s1"&gt;'print ....'&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;myResult&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;UDINT&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;uiResult&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;UDINT&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="c"&gt;(* Execute command *)&lt;/span&gt;
&lt;span class="n"&gt;uiResult&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="o"&gt;_(&lt;/span&gt;&lt;span class="n"&gt;pszComand&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;sCommandString&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="n"&gt;pResult&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;ADR&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;myResult&lt;/span&gt;&lt;span class="o"&gt;));&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;You just need to find out what the command line option is to print your files to your specific printer.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Print from visualisation</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/07d53f689b/?limit=25#a8bf" rel="alternate"/><published>2020-02-27T14:07:28.648000Z</published><updated>2020-02-27T14:07:28.648000Z</updated><author><name>PhGo</name><uri>https://forge.codesys.com/u/phgo/</uri></author><id>https://forge.codesys.com15365f39bf8b5aadfacbf2ff8108825e236d0c56</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello! &lt;br/&gt;
Have you solved this problem ?&lt;br/&gt;
I am face on the same !&lt;/p&gt;
&lt;p&gt;Best Regard.&lt;br/&gt;
Phillippe&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Print from visualisation</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/07d53f689b/?limit=25#823d" rel="alternate"/><published>2020-02-27T14:07:28.328000Z</published><updated>2020-02-27T14:07:28.328000Z</updated><author><name>JAPIB</name><uri>https://forge.codesys.com/u/japib/</uri></author><id>https://forge.codesys.com381032ae54a1b408f1bcaba28979f7119301d919</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello&lt;br/&gt;
I use a version of CoDeSys that runs on a PC.&lt;br/&gt;
In a display page I input and display numeric values ​​(INT)&lt;br/&gt;
I store in a text file numeric these values ​​using the library SYSFILE. it works very well&lt;/p&gt;
&lt;p&gt;How is it possible, from the view page, with a button for example, start printing the text file to a printer ?   &lt;/p&gt;
&lt;p&gt;Thank you in advance for your great ideas  &lt;/p&gt;&lt;/div&gt;</summary></entry></feed>