<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.ecibemet.com/index.php?action=history&amp;feed=atom&amp;title=PdcReport.PrintToPrinter</id>
	<title>PdcReport.PrintToPrinter - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.ecibemet.com/index.php?action=history&amp;feed=atom&amp;title=PdcReport.PrintToPrinter"/>
	<link rel="alternate" type="text/html" href="http://wiki.ecibemet.com/index.php?title=PdcReport.PrintToPrinter&amp;action=history"/>
	<updated>2026-05-06T17:19:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://wiki.ecibemet.com/index.php?title=PdcReport.PrintToPrinter&amp;diff=2307&amp;oldid=prev</id>
		<title>TC at 06:08, 5 November 2013</title>
		<link rel="alternate" type="text/html" href="http://wiki.ecibemet.com/index.php?title=PdcReport.PrintToPrinter&amp;diff=2307&amp;oldid=prev"/>
		<updated>2013-11-05T06:08:49Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 06:08, 5 November 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l35&quot;&gt;Line 35:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 35:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       objReport.PrintToPrinter 1, strPrinterName&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       objReport.PrintToPrinter 1, strPrinterName&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     else&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     else&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       msgbox &quot;This is not a correct filter.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       msgbox &quot;This is not a correct filter &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;| &quot; &amp;amp; objReport&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ErrorMessage&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     end if&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     end if&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   else&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   else&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>TC</name></author>
	</entry>
	<entry>
		<id>http://wiki.ecibemet.com/index.php?title=PdcReport.PrintToPrinter&amp;diff=1292&amp;oldid=prev</id>
		<title>Mike: Created page with &quot;== Declaration == PrintToPrinter(Copies as long,Printer as String) as Boolean  == Description ==   == Notes == This method prints the reports immediately to the printer. The p...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.ecibemet.com/index.php?title=PdcReport.PrintToPrinter&amp;diff=1292&amp;oldid=prev"/>
		<updated>2012-05-21T11:53:20Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Declaration == PrintToPrinter(Copies as long,Printer as String) as Boolean  == Description ==   == Notes == This method prints the reports immediately to the printer. The p...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Declaration ==&lt;br /&gt;
PrintToPrinter(Copies as long,Printer as String) as Boolean&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
This method prints the reports immediately to the printer.&lt;br /&gt;
The parameter copies is the number of prints.&lt;br /&gt;
With the printername parameter the script can specify a printer.&lt;br /&gt;
&lt;br /&gt;
== Code example ==&lt;br /&gt;
This example code opens a report with ID 336 and print it on the specified printer.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
dim objReports&lt;br /&gt;
dim objReport&lt;br /&gt;
dim objPrinters&lt;br /&gt;
dim intCnt&lt;br /&gt;
dim strPrinterNames&lt;br /&gt;
dim strPrinterName&lt;br /&gt;
&lt;br /&gt;
  set objReports = pdc.Reports&lt;br /&gt;
  set objPrinters = objReports.PrinterNames&lt;br /&gt;
  for intCnt = 0 to objPrinters.Count - 1&lt;br /&gt;
    strPrinterNames = strPrinterNames &amp;amp; objPrinters(intCnt) &amp;amp; vbCrLf&lt;br /&gt;
    if InStr(UCase(objPrinters(intCnt)), &amp;quot;PARTOFPRINTERNAME&amp;quot;) &amp;gt; 0 then&lt;br /&gt;
      strPrinterName = objPrinters(intCnt)&lt;br /&gt;
    end if&lt;br /&gt;
  next&lt;br /&gt;
&lt;br /&gt;
  if Trim(strPrinterName) &amp;lt;&amp;gt; &amp;quot;&amp;quot; then&lt;br /&gt;
    set objReport = objReports.Open(336)&lt;br /&gt;
    if objReport.AddFilter(&amp;quot;DO_CALC&amp;quot;, &amp;quot;DO_ORDNR=&amp;#039;00464&amp;#039;&amp;quot;) then&lt;br /&gt;
      objReport.PrintToPrinter 1, strPrinterName&lt;br /&gt;
    else&lt;br /&gt;
      msgbox &amp;quot;This is not a correct filter.&amp;quot;&lt;br /&gt;
    end if&lt;br /&gt;
  else&lt;br /&gt;
    msgbox strPrinterNames&lt;br /&gt;
  end if&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Availability ==&lt;br /&gt;
Available since February 2011 (from version 4.2).&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
</feed>