Access to printer settings dialog box

I think that's my answer. Thanks much!


On Wednesday, January 7, 2015 10:46 AM, "Jose Gomez jose@... [vantage]" <vantage@yahoogroups.com> wrote:


 
<div id="ygrps-yiv-937408959yiv6915525603ygrp-text">
  
  
  <div></div><div dir="ltr"><div class="ygrps-yiv-937408959yiv6915525603gmail_default" style="font-family:verdana, sans-serif;font-size:small;">Its been a while since I&#39;ve fiddled with printing in E9 but if you are triggering the FSW from the file you have the file name, you can then use the file name to query the System Task / Agent tables and pull the Report Record which contains the Printer Name. The table is&nbsp;SysRptLst</div><div class="ygrps-yiv-937408959yiv6915525603gmail_default" style="font-family:verdana, sans-serif;font-size:small;"><br clear="none"></div><div class="ygrps-yiv-937408959yiv6915525603gmail_default"><font face="verdana, sans-serif"><a rel="nofollow" shape="rect" target="_blank" href="http://i.imgur.com/gXXYt5i.png">http://i.imgur.com/gXXYt5i.png</a></font><br clear="none"></div><div class="ygrps-yiv-937408959yiv6915525603gmail_default" style="font-family:verdana, sans-serif;font-size:small;"><br clear="none"></div><div class="ygrps-yiv-937408959yiv6915525603gmail_default" style="font-family:verdana, sans-serif;font-size:small;"><br clear="none"></div><div class="ygrps-yiv-937408959yiv6915525603gmail_default" style="font-family:verdana, sans-serif;font-size:small;">Thanks!</div><div class="ygrps-yiv-937408959yiv6915525603gmail_extra"><br clear="all"><div><div><div dir="ltr"><div><font face="verdana, sans-serif"><br clear="none"><font color="#333333"><b>Jose C Gomez</b></font></font></div><div><font color="#666666" face="verdana, sans-serif" size="1"><b>Software Engineer<br clear="none"><br clear="none"></b></font></div><div><font face="verdana, sans-serif"><font><font color="#666666"><b><br clear="none"></b></font><font color="#FF6600" size="1">T: </font></font><font size="1"><span title="Call with Google Voice"><span title="Call with Google Voice"><a rel="nofollow" shape="rect">904.469.1524</a></span></span> mobile</font></font></div><div><font size="1" face="verdana, sans-serif"><font color="#FF6600">E:</font> <a rel="nofollow" shape="rect" target="_blank" href="mailto:jose@...">jose@...</a></font><font size="1" face="verdana, sans-serif"><br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://www.josecgomez.com/"><font color="#FF6600">http://www.josecgomez.com</font></a><br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://www.linkedin.com/in/josecgomez" style="font-size:small;"><img></a>&nbsp;<a rel="nofollow" shape="rect" target="_blank" href="http://www.facebook.com/josegomez" style="font-size:small;"><img></a>&nbsp;</font><a rel="nofollow" shape="rect" target="_blank" href="http://www.google.com/profiles/jose.gomez"><img></a>&nbsp;<a rel="nofollow" shape="rect" target="_blank" href="http://www.twitter.com/joc85"><img></a>&nbsp;<a rel="nofollow" shape="rect" target="_blank" href="http://www.josecgomez.com/professional-resume/"><img></a>&nbsp;<span style="font-family:verdana, sans-serif;"><a rel="nofollow" shape="rect" target="_blank" href="http://www.josecgomez.com/feed/"><img></a>&nbsp;</span></div><div><span lang="LA" style="color:black;"><br clear="none"><font face="Verdana, sans-serif" style="font-weight:bold;" size="1"><i>Quis custodiet

ipsos custodes?


On Wed, Jan 7, 2015 at 11:03 AM, Earl Morren morren5@... [vantage] <vantage@yahoogroups.com> wrote:

 
<div>
  
  
  <div></div><div style="color:rgb(0,0,0);font-family:HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;font-size:16px;background-color:rgb(255,255,255);"><div dir="ltr"><span>Hi Jose:</span></div><div dir="ltr"><span><br clear="none"></span></div><div dir="ltr"><span>Thanks for your reply.</span></div><div dir="ltr"><span><br clear="none"></span></div><div dir="ltr"><span>In fact, I read the article you cited already. This is how I learned about FileSystemWatcher, and so was initially able to capture the report creation event (much thanks for your tutorial!). What I&#39;m after now is capturing the event when the report is actually printed (i.e., added to the print queue; this comes some time after the report is created), so that I can trigger the printing of associated documents after the packing slip has printed. If I trigger the attachment printing when the file is just created the attachments usually come out of the printer ahead of the packing slip. As I wrote earlier, I am able to monitor the print queue just fine, but I would like to filter the print queue events to only the printer the report went to. I think that would require me to get a handle to the print dialog box (from the system) so I could get the printer info. It&#39;s getting the handle to that dialog box that has me stumped.</span></div><div dir="ltr"><span><br clear="none"></span></div><div dir="ltr"><span>As I write this it occurs to me that simply popping a second print dialog box on the report creation event (triggered by&nbsp;</span>FileSystemWatcher) that allows the user to specify an alternate attachment printing location. I&#39;m going to try that.</div><div dir="ltr"><br clear="none"></div><div dir="ltr">If you have any ideas about how I could capture the report print dialog handle, that would be useful for future reference as well.</div><div dir="ltr"><br clear="none"></div><div dir="ltr">Cheers,</div><div dir="ltr"><br clear="none"></div><div dir="ltr">Earl</div><span> </span><div><br clear="none"><br clear="none"></div><div> <div style="font-family:HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;font-size:16px;"> <div style="font-family:HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;font-size:16px;"> <div dir="ltr"> <font face="Arial"> On Wednesday, January 7, 2015 8:02 AM, &quot;Jose Gomez <a rel="nofollow" shape="rect" target="_blank" href="mailto:jose@...">jose@...</a> [vantage]&quot; &lt;<a rel="nofollow" shape="rect" target="_blank" href="mailto:vantage@yahoogroups.com">vantage@yahoogroups.com</a>&gt; wrote:<br clear="none"> </font> </div>  <br clear="none"><br clear="none"> <div><div><div>

 

<div>
  
  
  <div></div><div dir="ltr"><div style="font-family:verdana, sans-serif;font-size:small;">Check this out&nbsp;</div><div><font face="verdana, sans-serif"><a rel="nofollow" shape="rect" target="_blank" href="http://www.josecgomez.com/2013/10/01/how-to-export-a-crystal-report-through-code-by-using-reflection-in-epicor/">http://www.josecgomez.com/2013/10/01/how-to-export-a-crystal-report-through-code-by-using-reflection-in-epicor/</a></font><br clear="none"></div></div><div><br clear="all"><div><div><div dir="ltr"><div><font face="verdana, sans-serif"><br clear="none"><font color="#333333"><b>Jose C Gomez</b></font></font></div><div><font color="#666666" face="verdana, sans-serif" size="1"><b>Software Engineer<br clear="none"><br clear="none"></b></font></div><div><font face="verdana, sans-serif"><font><font color="#666666"><b><br clear="none"></b></font><font color="#FF6600" size="1">T: </font></font><font size="1"><span title="Call with Google Voice"><span title="Call with Google Voice"><a rel="nofollow" shape="rect">904.469.1524</a></span></span> mobile</font></font></div><div><font size="1" face="verdana, sans-serif"><font color="#FF6600">E:</font> <a rel="nofollow" shape="rect" target="_blank" href="mailto:jose@...">jose@...</a></font><font size="1" face="verdana, sans-serif"><br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://www.josecgomez.com/"><font color="#FF6600">http://www.josecgomez.com</font></a><br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://www.linkedin.com/in/josecgomez" style="font-size:small;"><img></a>&nbsp;<a rel="nofollow" shape="rect" target="_blank" href="http://www.facebook.com/josegomez" style="font-size:small;"><img></a>&nbsp;</font><a rel="nofollow" shape="rect" target="_blank" href="http://www.google.com/profiles/jose.gomez"><img></a>&nbsp;<a rel="nofollow" shape="rect" target="_blank" href="http://www.twitter.com/joc85"><img></a>&nbsp;<a rel="nofollow" shape="rect" target="_blank" href="http://www.josecgomez.com/professional-resume/"><img></a>&nbsp;<span style="font-family:verdana, sans-serif;"><a rel="nofollow" shape="rect" target="_blank" href="http://www.josecgomez.com/feed/"><img></a>&nbsp;</span></div><div><span lang="LA" style="color:black;"><br clear="none"><font face="Verdana, sans-serif" style="font-weight:bold;" size="1"><i>Quis custodiet

ipsos custodes?



On Wed, Jan 7, 2015 at 8:51 AM, 'Morren, Earl' morren5@… [vantage] <vantage@yahoogroups.com> wrote:

 
<div>
  
  
  <div>
Greetings all:
 
I’m working on an upgrade to the Print Packing Slip dialog that will enable users to print attachments associated with each part automatically. I’m using Epicor 9.05.701.
 
The approach I’m using is to trap an event when the packing slip report is actually printed (using a print queue monitoring routine). But the print queue monitor is watching all of the networked printers, not just the one I sent the packing slip to. It would be desirable to know which printer the report was sent to so I can just monitor that one printer. My problem at this point is that I don’t know how to get a handle to printer setting dialog box so I could query it for the printer name. Do any of you know how to do this?
 
In a further refinement, I would like to know the name of the file that was actually printed. I would like to filter the events from the printer and only print my attachments when the specific file containing the packing slip report has been printed. As it is, Crystal Reports assigns a temporary file name to the file that is printed. I suppose I could watch the folder where the temporary file is stashed (if I knew where that is) and catch it that way, but I’m hoping that I could get this file name from the print dialog box.
 
Best regards,
 
Earl
</div>
 


<div style="color:rgb(255,255,255);min-height:0px;"></div>

</div>
 


<div style="color:rgb(255,255,255);min-height:0px;"></div></div>


</div>
 


<div style="color:rgb(255,255,255);min-height:0px;"></div>

</div>
 


<div class="ygrps-yiv-937408959yiv6915525603yqt1872462513" id="ygrps-yiv-937408959yiv6915525603yqt74803"><div style="color:#fff;height:0;"></div></div>
#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 #ygrps-yiv-937408959yiv6915525603 -- #ygrps-yiv-937408959yiv6915525603ygrp-mkp { border:1px solid #d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 #ygrps-yiv-937408959yiv6915525603ygrp-mkp hr {
border:1px solid #d8d8d8;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 #ygrps-yiv-937408959yiv6915525603ygrp-mkp #ygrps-yiv-937408959yiv6915525603hd {
color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 0;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 #ygrps-yiv-937408959yiv6915525603ygrp-mkp #ygrps-yiv-937408959yiv6915525603ads {
margin-bottom:10px;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 #ygrps-yiv-937408959yiv6915525603ygrp-mkp .ygrps-yiv-937408959yiv6915525603ad {
padding:0 0;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 #ygrps-yiv-937408959yiv6915525603ygrp-mkp .ygrps-yiv-937408959yiv6915525603ad p {
margin:0;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 #ygrps-yiv-937408959yiv6915525603ygrp-mkp .ygrps-yiv-937408959yiv6915525603ad a {
color:#0000ff;text-decoration:none;}
#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 #ygrps-yiv-937408959yiv6915525603ygrp-sponsor #ygrps-yiv-937408959yiv6915525603ygrp-lc {
font-family:Arial;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 #ygrps-yiv-937408959yiv6915525603ygrp-sponsor #ygrps-yiv-937408959yiv6915525603ygrp-lc #ygrps-yiv-937408959yiv6915525603hd {
margin:10px 0px;font-weight:700;font-size:78%;line-height:122%;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 #ygrps-yiv-937408959yiv6915525603ygrp-sponsor #ygrps-yiv-937408959yiv6915525603ygrp-lc .ygrps-yiv-937408959yiv6915525603ad {
margin-bottom:10px;padding:0 0;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 #ygrps-yiv-937408959yiv6915525603actions {
font-family:Verdana;font-size:11px;padding:10px 0;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 #ygrps-yiv-937408959yiv6915525603activity {
background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 #ygrps-yiv-937408959yiv6915525603activity span {
font-weight:700;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 #ygrps-yiv-937408959yiv6915525603activity span:first-child {
text-transform:uppercase;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 #ygrps-yiv-937408959yiv6915525603activity span a {
color:#5085b6;text-decoration:none;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 #ygrps-yiv-937408959yiv6915525603activity span span {
color:#ff7900;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 #ygrps-yiv-937408959yiv6915525603activity span .ygrps-yiv-937408959yiv6915525603underline {
text-decoration:underline;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 .ygrps-yiv-937408959yiv6915525603attach {
clear:both;display:table;font-family:Arial;font-size:12px;padding:10px 0;width:400px;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 .ygrps-yiv-937408959yiv6915525603attach div a {
text-decoration:none;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 .ygrps-yiv-937408959yiv6915525603attach img {
border:none;padding-right:5px;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 .ygrps-yiv-937408959yiv6915525603attach label {
display:block;margin-bottom:5px;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 .ygrps-yiv-937408959yiv6915525603attach label a {
text-decoration:none;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 blockquote {
margin:0 0 0 4px;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 .ygrps-yiv-937408959yiv6915525603bold {
font-family:Arial;font-size:13px;font-weight:700;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 .ygrps-yiv-937408959yiv6915525603bold a {
text-decoration:none;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 dd.ygrps-yiv-937408959yiv6915525603last p a {
font-family:Verdana;font-weight:700;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 dd.ygrps-yiv-937408959yiv6915525603last p span {
margin-right:10px;font-family:Verdana;font-weight:700;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 dd.ygrps-yiv-937408959yiv6915525603last p span.ygrps-yiv-937408959yiv6915525603yshortcuts {
margin-right:0;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 div.ygrps-yiv-937408959yiv6915525603attach-table div div a {
text-decoration:none;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 div.ygrps-yiv-937408959yiv6915525603attach-table {
width:400px;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 div.ygrps-yiv-937408959yiv6915525603file-title a, #ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 div.ygrps-yiv-937408959yiv6915525603file-title a:active, #ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 div.ygrps-yiv-937408959yiv6915525603file-title a:hover, #ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 div.ygrps-yiv-937408959yiv6915525603file-title a:visited {
text-decoration:none;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 div.ygrps-yiv-937408959yiv6915525603photo-title a, #ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 div.ygrps-yiv-937408959yiv6915525603photo-title a:active, #ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 div.ygrps-yiv-937408959yiv6915525603photo-title a:hover, #ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 div.ygrps-yiv-937408959yiv6915525603photo-title a:visited {
text-decoration:none;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 div#ygrps-yiv-937408959yiv6915525603ygrp-mlmsg #ygrps-yiv-937408959yiv6915525603ygrp-msg p a span.ygrps-yiv-937408959yiv6915525603yshortcuts {
font-family:Verdana;font-size:10px;font-weight:normal;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 .ygrps-yiv-937408959yiv6915525603green {
color:#628c2a;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 .ygrps-yiv-937408959yiv6915525603MsoNormal {
margin:0 0 0 0;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 o {
font-size:0;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 #ygrps-yiv-937408959yiv6915525603photos div {
float:left;width:72px;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 #ygrps-yiv-937408959yiv6915525603photos div div {
border:1px solid #666666;height:62px;overflow:hidden;width:62px;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 #ygrps-yiv-937408959yiv6915525603photos div label {
color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 #ygrps-yiv-937408959yiv6915525603reco-category {
font-size:77%;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 #ygrps-yiv-937408959yiv6915525603reco-desc {
font-size:77%;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 .ygrps-yiv-937408959yiv6915525603replbq {
margin:4px;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 #ygrps-yiv-937408959yiv6915525603ygrp-actbar div a:first-child {
margin-right:2px;padding-right:5px;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 #ygrps-yiv-937408959yiv6915525603ygrp-mlmsg {
font-size:13px;font-family:Arial, helvetica, clean, sans-serif;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 #ygrps-yiv-937408959yiv6915525603ygrp-mlmsg table {
font-size:inherit;font:100%;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 #ygrps-yiv-937408959yiv6915525603ygrp-mlmsg select, #ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 input, #ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 textarea {
font:99% Arial, Helvetica, clean, sans-serif;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 #ygrps-yiv-937408959yiv6915525603ygrp-mlmsg pre, #ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 code {
font:115% monospace;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 #ygrps-yiv-937408959yiv6915525603ygrp-mlmsg * {
line-height:1.22em;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 #ygrps-yiv-937408959yiv6915525603ygrp-mlmsg #ygrps-yiv-937408959yiv6915525603logo {
padding-bottom:10px;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 #ygrps-yiv-937408959yiv6915525603ygrp-msg p a {
font-family:Verdana;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 #ygrps-yiv-937408959yiv6915525603ygrp-msg p#ygrps-yiv-937408959yiv6915525603attach-count span {
color:#1E66AE;font-weight:700;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 #ygrps-yiv-937408959yiv6915525603ygrp-reco #ygrps-yiv-937408959yiv6915525603reco-head {
color:#ff7900;font-weight:700;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 #ygrps-yiv-937408959yiv6915525603ygrp-reco {
margin-bottom:20px;padding:0px;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 #ygrps-yiv-937408959yiv6915525603ygrp-sponsor #ygrps-yiv-937408959yiv6915525603ov li a {
font-size:130%;text-decoration:none;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 #ygrps-yiv-937408959yiv6915525603ygrp-sponsor #ygrps-yiv-937408959yiv6915525603ov li {
font-size:77%;list-style-type:square;padding:6px 0;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 #ygrps-yiv-937408959yiv6915525603ygrp-sponsor #ygrps-yiv-937408959yiv6915525603ov ul {
margin:0;padding:0 0 0 8px;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 #ygrps-yiv-937408959yiv6915525603ygrp-text {
font-family:Georgia;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 #ygrps-yiv-937408959yiv6915525603ygrp-text p {
margin:0 0 1em 0;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 #ygrps-yiv-937408959yiv6915525603ygrp-text tt {
font-size:120%;}

#ygrps-yiv-937408959 #ygrps-yiv-937408959yiv6915525603 #ygrps-yiv-937408959yiv6915525603ygrp-vital ul li:last-child {
border-right:none !important;}
#ygrps-yiv-937408959



Greetings all:

 

I’m working on an upgrade to the Print Packing Slip dialog that will enable users to print attachments associated with each part automatically. I’m using Epicor 9.05.701.

 

The approach I’m using is to trap an event when the packing slip report is actually printed (using a print queue monitoring routine). But the print queue monitor is watching all of the networked printers, not just the one I sent the packing slip to. It would be desirable to know which printer the report was sent to so I can just monitor that one printer. My problem at this point is that I don’t know how to get a handle to printer setting dialog box so I could query it for the printer name. Do any of you know how to do this?

 

In a further refinement, I would like to know the name of the file that was actually printed. I would like to filter the events from the printer and only print my attachments when the specific file containing the packing slip report has been printed. As it is, Crystal Reports assigns a temporary file name to the file that is printed. I suppose I could watch the folder where the temporary file is stashed (if I knew where that is) and catch it that way, but I’m hoping that I could get this file name from the print dialog box.

 

Best regards,

 

Earl



Jose C Gomez
Software Engineer


T: 904.469.1524 mobile

Quis custodiet ipsos custodes?

On Wed, Jan 7, 2015 at 8:51 AM, 'Morren, Earl' morren5@... [vantage] <vantage@yahoogroups.com> wrote:

Â
<div>
  
  
  <p>

Greetings all:

Â

I’m working on an upgrade to the Print Packing Slip dialog that will enable users to print attachments associated with each part automatically. I’m using Epicor 9.05.701.

Â

The approach I’m using is to trap an event when the packing slip report is actually printed (using a print queue monitoring routine). But the print queue monitor is watching all of the networked printers, not just the one I sent the packing slip to. It would be desirable to know which printer the report was sent to so I can just monitor that one printer. My problem at this point is that I don’t know how to get a handle to printer setting dialog box so I could query it for the printer name. Do any of you know how to do this?

Â

In a further refinement, I would like to know the name of the file that was actually printed. I would like to filter the events from the printer and only print my attachments when the specific file containing the packing slip report has been printed. As it is, Crystal Reports assigns a temporary file name to the file that is printed. I suppose I could watch the folder where the temporary file is stashed (if I knew where that is) and catch it that way, but I’m hoping that I could get this file name from the print dialog box.

Â

Best regards,

Â

Earl

</div>
 


<div style="color:#fff;min-height:0;"></div>

Hi Jose:

Thanks for your reply.

In fact, I read the article you cited already. This is how I learned about FileSystemWatcher, and so was initially able to capture the report creation event (much thanks for your tutorial!). What I'm after now is capturing the event when the report is actually printed (i.e., added to the print queue; this comes some time after the report is created), so that I can trigger the printing of associated documents after the packing slip has printed. If I trigger the attachment printing when the file is just created the attachments usually come out of the printer ahead of the packing slip. As I wrote earlier, I am able to monitor the print queue just fine, but I would like to filter the print queue events to only the printer the report went to. I think that would require me to get a handle to the print dialog box (from the system) so I could get the printer info. It's getting the handle to that dialog box that has me stumped.

As I write this it occurs to me that simply popping a second print dialog box on the report creation event (triggered by FileSystemWatcher) that allows the user to specify an alternate attachment printing location. I'm going to try that.

If you have any ideas about how I could capture the report print dialog handle, that would be useful for future reference as well.

Cheers,

Earl


On Wednesday, January 7, 2015 8:02 AM, "Jose Gomez jose@... [vantage]" <vantage@yahoogroups.com> wrote:


 
<div id="ygrps-yiv-988257901yiv5159990301ygrp-text">
  
  
  <div></div><div dir="ltr"><div class="ygrps-yiv-988257901yiv5159990301gmail_default" style="font-family:verdana, sans-serif;font-size:small;">Check this out&nbsp;</div><div class="ygrps-yiv-988257901yiv5159990301gmail_default"><font face="verdana, sans-serif"><a rel="nofollow" shape="rect" target="_blank" href="http://www.josecgomez.com/2013/10/01/how-to-export-a-crystal-report-through-code-by-using-reflection-in-epicor/">http://www.josecgomez.com/2013/10/01/how-to-export-a-crystal-report-through-code-by-using-reflection-in-epicor/</a></font><br clear="none"></div></div><div class="ygrps-yiv-988257901yiv5159990301gmail_extra"><br clear="all"><div><div class="ygrps-yiv-988257901yiv5159990301gmail_signature"><div dir="ltr"><div><font face="verdana, sans-serif"><br clear="none"><font color="#333333"><b>Jose C Gomez</b></font></font></div><div><font color="#666666" face="verdana, sans-serif" size="1"><b>Software Engineer<br clear="none"><br clear="none"></b></font></div><div><font face="verdana, sans-serif"><font><font color="#666666"><b><br clear="none"></b></font><font color="#FF6600" size="1">T: </font></font><font size="1"><span title="Call with Google Voice"><span title="Call with Google Voice">904.469.1524</span></span> mobile</font></font></div><div><font size="1" face="verdana, sans-serif"><font color="#FF6600">E:</font> <a rel="nofollow" shape="rect" target="_blank" href="mailto:jose@...">jose@...</a></font><font size="1" face="verdana, sans-serif"><br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://www.josecgomez.com/"><font color="#FF6600">http://www.josecgomez.com</font></a><br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://www.linkedin.com/in/josecgomez" style="font-size:small;"><img src="https://ec.yimg.com/ec?url=http%3A%2F%2Fwww.josecgomez.com%2Fimages%2Flinkedin.png&t=1472996448&sig=I0iKKtGH8IgQeHf43w5OMQ--~C"></a>&nbsp;<a rel="nofollow" shape="rect" target="_blank" href="http://www.facebook.com/josegomez" style="font-size:small;"><img src="https://ec.yimg.com/ec?url=http%3A%2F%2Fwww.josecgomez.com%2Fimages%2Ffacebook.png&t=1472996448&sig=NbFDnVkoS8a8WtLGWnZwaw--~C"></a>&nbsp;</font><a rel="nofollow" shape="rect" target="_blank" href="http://www.google.com/profiles/jose.gomez"><img src="https://ec.yimg.com/ec?url=http%3A%2F%2Fwww.josecgomez.com%2Fimages%2Fgoogle.png&t=1472996448&sig=p0Y5XmD5lPQBsONMkoLfSQ--~C"></a>&nbsp;<a rel="nofollow" shape="rect" target="_blank" href="http://www.twitter.com/joc85"><img src="https://ec.yimg.com/ec?url=http%3A%2F%2Fwww.josecgomez.com%2Fimages%2Ftwitter.png&t=1472996448&sig=jBruXYfdMW9iPcWPIRidYg--~C"></a>&nbsp;<a rel="nofollow" shape="rect" target="_blank" href="http://www.josecgomez.com/professional-resume/"><img src="https://ec.yimg.com/ec?url=http%3A%2F%2Fwww.josecgomez.com%2Fimages%2Fwp.png&t=1472996448&sig=Cza1V7EW96O7U0hsZliVUA--~C"></a>&nbsp;<span style="font-family:verdana, sans-serif;"><a rel="nofollow" shape="rect" target="_blank" href="http://www.josecgomez.com/feed/"><img src="https://ec.yimg.com/ec?url=http%3A%2F%2Fwww.josecgomez.com%2Fimages%2Frss.png&t=1472996448&sig=8Ee3CjMqWU_UHUF00IkOlg--~C"></a>&nbsp;</span></div><div><span lang="LA" style="color:black;"><br clear="none"><font face="Verdana, sans-serif" style="font-weight:bold;" size="1"><i>Quis custodiet

ipsos custodes?


On Wed, Jan 7, 2015 at 8:51 AM, 'Morren, Earl' morren5@... [vantage] <vantage@yahoogroups.com> wrote:

 
<div>
  
  
  <div>
Greetings all:
 
I’m working on an upgrade to the Print Packing Slip dialog that will enable users to print attachments associated with each part automatically. I’m using Epicor 9.05.701.
 
The approach I’m using is to trap an event when the packing slip report is actually printed (using a print queue monitoring routine). But the print queue monitor is watching all of the networked printers, not just the one I sent the packing slip to. It would be desirable to know which printer the report was sent to so I can just monitor that one printer. My problem at this point is that I don’t know how to get a handle to printer setting dialog box so I could query it for the printer name. Do any of you know how to do this?
 
In a further refinement, I would like to know the name of the file that was actually printed. I would like to filter the events from the printer and only print my attachments when the specific file containing the packing slip report has been printed. As it is, Crystal Reports assigns a temporary file name to the file that is printed. I suppose I could watch the folder where the temporary file is stashed (if I knew where that is) and catch it that way, but I’m hoping that I could get this file name from the print dialog box.
 
Best regards,
 
Earl
</div>
 


<div style="color:#fff;min-height:0;"></div>

</div>
 


<div style="color:#fff;height:0;"></div></div>
#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 #ygrps-yiv-988257901yiv5159990301 -- #ygrps-yiv-988257901yiv5159990301ygrp-mkp { border:1px solid #d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 #ygrps-yiv-988257901yiv5159990301ygrp-mkp hr {
border:1px solid #d8d8d8;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 #ygrps-yiv-988257901yiv5159990301ygrp-mkp #ygrps-yiv-988257901yiv5159990301hd {
color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 0;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 #ygrps-yiv-988257901yiv5159990301ygrp-mkp #ygrps-yiv-988257901yiv5159990301ads {
margin-bottom:10px;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 #ygrps-yiv-988257901yiv5159990301ygrp-mkp .ygrps-yiv-988257901yiv5159990301ad {
padding:0 0;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 #ygrps-yiv-988257901yiv5159990301ygrp-mkp .ygrps-yiv-988257901yiv5159990301ad p {
margin:0;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 #ygrps-yiv-988257901yiv5159990301ygrp-mkp .ygrps-yiv-988257901yiv5159990301ad a {
color:#0000ff;text-decoration:none;}
#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 #ygrps-yiv-988257901yiv5159990301ygrp-sponsor #ygrps-yiv-988257901yiv5159990301ygrp-lc {
font-family:Arial;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 #ygrps-yiv-988257901yiv5159990301ygrp-sponsor #ygrps-yiv-988257901yiv5159990301ygrp-lc #ygrps-yiv-988257901yiv5159990301hd {
margin:10px 0px;font-weight:700;font-size:78%;line-height:122%;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 #ygrps-yiv-988257901yiv5159990301ygrp-sponsor #ygrps-yiv-988257901yiv5159990301ygrp-lc .ygrps-yiv-988257901yiv5159990301ad {
margin-bottom:10px;padding:0 0;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 #ygrps-yiv-988257901yiv5159990301actions {
font-family:Verdana;font-size:11px;padding:10px 0;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 #ygrps-yiv-988257901yiv5159990301activity {
background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 #ygrps-yiv-988257901yiv5159990301activity span {
font-weight:700;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 #ygrps-yiv-988257901yiv5159990301activity span:first-child {
text-transform:uppercase;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 #ygrps-yiv-988257901yiv5159990301activity span a {
color:#5085b6;text-decoration:none;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 #ygrps-yiv-988257901yiv5159990301activity span span {
color:#ff7900;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 #ygrps-yiv-988257901yiv5159990301activity span .ygrps-yiv-988257901yiv5159990301underline {
text-decoration:underline;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 .ygrps-yiv-988257901yiv5159990301attach {
clear:both;display:table;font-family:Arial;font-size:12px;padding:10px 0;width:400px;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 .ygrps-yiv-988257901yiv5159990301attach div a {
text-decoration:none;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 .ygrps-yiv-988257901yiv5159990301attach img {
border:none;padding-right:5px;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 .ygrps-yiv-988257901yiv5159990301attach label {
display:block;margin-bottom:5px;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 .ygrps-yiv-988257901yiv5159990301attach label a {
text-decoration:none;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 blockquote {
margin:0 0 0 4px;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 .ygrps-yiv-988257901yiv5159990301bold {
font-family:Arial;font-size:13px;font-weight:700;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 .ygrps-yiv-988257901yiv5159990301bold a {
text-decoration:none;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 dd.ygrps-yiv-988257901yiv5159990301last p a {
font-family:Verdana;font-weight:700;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 dd.ygrps-yiv-988257901yiv5159990301last p span {
margin-right:10px;font-family:Verdana;font-weight:700;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 dd.ygrps-yiv-988257901yiv5159990301last p span.ygrps-yiv-988257901yiv5159990301yshortcuts {
margin-right:0;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 div.ygrps-yiv-988257901yiv5159990301attach-table div div a {
text-decoration:none;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 div.ygrps-yiv-988257901yiv5159990301attach-table {
width:400px;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 div.ygrps-yiv-988257901yiv5159990301file-title a, #ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 div.ygrps-yiv-988257901yiv5159990301file-title a:active, #ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 div.ygrps-yiv-988257901yiv5159990301file-title a:hover, #ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 div.ygrps-yiv-988257901yiv5159990301file-title a:visited {
text-decoration:none;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 div.ygrps-yiv-988257901yiv5159990301photo-title a, #ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 div.ygrps-yiv-988257901yiv5159990301photo-title a:active, #ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 div.ygrps-yiv-988257901yiv5159990301photo-title a:hover, #ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 div.ygrps-yiv-988257901yiv5159990301photo-title a:visited {
text-decoration:none;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 div#ygrps-yiv-988257901yiv5159990301ygrp-mlmsg #ygrps-yiv-988257901yiv5159990301ygrp-msg p a span.ygrps-yiv-988257901yiv5159990301yshortcuts {
font-family:Verdana;font-size:10px;font-weight:normal;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 .ygrps-yiv-988257901yiv5159990301green {
color:#628c2a;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 .ygrps-yiv-988257901yiv5159990301MsoNormal {
margin:0 0 0 0;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 o {
font-size:0;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 #ygrps-yiv-988257901yiv5159990301photos div {
float:left;width:72px;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 #ygrps-yiv-988257901yiv5159990301photos div div {
border:1px solid #666666;height:62px;overflow:hidden;width:62px;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 #ygrps-yiv-988257901yiv5159990301photos div label {
color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 #ygrps-yiv-988257901yiv5159990301reco-category {
font-size:77%;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 #ygrps-yiv-988257901yiv5159990301reco-desc {
font-size:77%;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 .ygrps-yiv-988257901yiv5159990301replbq {
margin:4px;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 #ygrps-yiv-988257901yiv5159990301ygrp-actbar div a:first-child {
margin-right:2px;padding-right:5px;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 #ygrps-yiv-988257901yiv5159990301ygrp-mlmsg {
font-size:13px;font-family:Arial, helvetica, clean, sans-serif;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 #ygrps-yiv-988257901yiv5159990301ygrp-mlmsg table {
font-size:inherit;font:100%;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 #ygrps-yiv-988257901yiv5159990301ygrp-mlmsg select, #ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 input, #ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 textarea {
font:99% Arial, Helvetica, clean, sans-serif;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 #ygrps-yiv-988257901yiv5159990301ygrp-mlmsg pre, #ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 code {
font:115% monospace;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 #ygrps-yiv-988257901yiv5159990301ygrp-mlmsg * {
line-height:1.22em;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 #ygrps-yiv-988257901yiv5159990301ygrp-mlmsg #ygrps-yiv-988257901yiv5159990301logo {
padding-bottom:10px;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 #ygrps-yiv-988257901yiv5159990301ygrp-msg p a {
font-family:Verdana;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 #ygrps-yiv-988257901yiv5159990301ygrp-msg p#ygrps-yiv-988257901yiv5159990301attach-count span {
color:#1E66AE;font-weight:700;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 #ygrps-yiv-988257901yiv5159990301ygrp-reco #ygrps-yiv-988257901yiv5159990301reco-head {
color:#ff7900;font-weight:700;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 #ygrps-yiv-988257901yiv5159990301ygrp-reco {
margin-bottom:20px;padding:0px;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 #ygrps-yiv-988257901yiv5159990301ygrp-sponsor #ygrps-yiv-988257901yiv5159990301ov li a {
font-size:130%;text-decoration:none;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 #ygrps-yiv-988257901yiv5159990301ygrp-sponsor #ygrps-yiv-988257901yiv5159990301ov li {
font-size:77%;list-style-type:square;padding:6px 0;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 #ygrps-yiv-988257901yiv5159990301ygrp-sponsor #ygrps-yiv-988257901yiv5159990301ov ul {
margin:0;padding:0 0 0 8px;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 #ygrps-yiv-988257901yiv5159990301ygrp-text {
font-family:Georgia;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 #ygrps-yiv-988257901yiv5159990301ygrp-text p {
margin:0 0 1em 0;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 #ygrps-yiv-988257901yiv5159990301ygrp-text tt {
font-size:120%;}

#ygrps-yiv-988257901 #ygrps-yiv-988257901yiv5159990301 #ygrps-yiv-988257901yiv5159990301ygrp-vital ul li:last-child {
border-right:none !important;}
#ygrps-yiv-988257901



Its been a while since I've fiddled with printing in E9 but if you are triggering the FSW from the file you have the file name, you can then use the file name to query the System Task / Agent tables and pull the Report Record which contains the Printer Name. The table is SysRptLst



Thanks!


Jose C Gomez
Software Engineer


T: 904.469.1524 mobile

Quis custodiet ipsos custodes?

On Wed, Jan 7, 2015 at 11:03 AM, Earl Morren morren5@... [vantage] <vantage@yahoogroups.com> wrote:

Â
<div>
  
  
  <p></p><div style="color:rgb(0,0,0);font-family:HelveticaNeue,;font-size:16px;background-color:rgb(255,255,255);"><div dir="ltr"><span>Hi Jose:</span></div><div dir="ltr"><span><br></span></div><div dir="ltr"><span>Thanks for your reply.</span></div><div dir="ltr"><span><br></span></div><div dir="ltr"><span>In fact, I read the article you cited already. This is how I learned about FileSystemWatcher, and so was initially able to capture the report creation event (much thanks for your tutorial!). What I&#39;m after now is capturing the event when the report is actually printed (i.e., added to the print queue; this comes some time after the report is created), so that I can trigger the printing of associated documents after the packing slip has printed. If I trigger the attachment printing when the file is just created the attachments usually come out of the printer ahead of the packing slip. As I wrote earlier, I am able to monitor the print queue just fine, but I would like to filter the print queue events to only the printer the report went to. I think that would require me to get a handle to the print dialog box (from the system) so I could get the printer info. It&#39;s getting the handle to that dialog box that has me stumped.</span></div><div dir="ltr"><span><br></span></div><div dir="ltr"><span>As I write this it occurs to me that simply popping a second print dialog box on the report creation event (triggered by </span>FileSystemWatcher) that allows the user to specify an alternate attachment printing location. I&#39;m going to try that.</div><div dir="ltr"><br></div><div dir="ltr">If you have any ideas about how I could capture the report print dialog handle, that would be useful for future reference as well.</div><div dir="ltr"><br></div><div dir="ltr">Cheers,</div><div dir="ltr"><br></div><div dir="ltr">Earl</div><span> <div><br><br></div><div> <div style="font-family:HelveticaNeue,;font-size:16px;"> <div style="font-family:HelveticaNeue,;font-size:16px;"> <div dir="ltr"> <font face="Arial"> On Wednesday, January 7, 2015 8:02 AM, &quot;Jose Gomez <a rel="nofollow" target="_blank" href="mailto:jose@...">jose@...</a> [vantage]&quot; &lt;<a rel="nofollow" target="_blank" href="mailto:vantage@yahoogroups.com">vantage@yahoogroups.com</a>&gt; wrote:<br> </font> </div>  <br><br> <div><div><div>

Â

<div>
  
  
  <div></div><div dir="ltr"><div style="font-family:verdana, sans-serif;font-size:small;">Check this out </div><div><font face="verdana, sans-serif"><a rel="nofollow" shape="rect" target="_blank" href="http://www.josecgomez.com/2013/10/01/how-to-export-a-crystal-report-through-code-by-using-reflection-in-epicor/">http://www.josecgomez.com/2013/10/01/how-to-export-a-crystal-report-through-code-by-using-reflection-in-epicor/</a></font><br clear="none"></div></div><div><br clear="all"><div><div><div dir="ltr"><div><font face="verdana, sans-serif"><br clear="none"><font color="#333333"><b>Jose C Gomez</b></font></font></div><div><font color="#666666" face="verdana, sans-serif" size="1"><b>Software Engineer<br clear="none"><br clear="none"></b></font></div><div><font face="verdana, sans-serif"><font><font color="#666666"><b><br clear="none"></b></font><font color="#FF6600" size="1">T: </font></font><font size="1"><span title="Call with Google Voice"><span title="Call with Google Voice"><a rel="nofollow">904.469.1524</a></span></span> mobile</font></font></div><div><font size="1" face="verdana, sans-serif"><font color="#FF6600">E:</font> <a rel="nofollow" shape="rect" target="_blank" href="mailto:jose@...">jose@...</a></font><font size="1" face="verdana, sans-serif"><br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://www.josecgomez.com/"><font color="#FF6600">http://www.josecgomez.com</font></a><br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://www.linkedin.com/in/josecgomez" style="font-size:small;"><img src="https://ec.yimg.com/ec?url=http%3A%2F%2Fwww.josecgomez.com%2Fimages%2Flinkedin.png&t=1472996448&sig=I0iKKtGH8IgQeHf43w5OMQ--~C"></a> <a rel="nofollow" shape="rect" target="_blank" href="http://www.facebook.com/josegomez" style="font-size:small;"><img src="https://ec.yimg.com/ec?url=http%3A%2F%2Fwww.josecgomez.com%2Fimages%2Ffacebook.png&t=1472996448&sig=NbFDnVkoS8a8WtLGWnZwaw--~C"></a> </font><a rel="nofollow" shape="rect" target="_blank" href="http://www.google.com/profiles/jose.gomez"><img src="https://ec.yimg.com/ec?url=http%3A%2F%2Fwww.josecgomez.com%2Fimages%2Fgoogle.png&t=1472996448&sig=p0Y5XmD5lPQBsONMkoLfSQ--~C"></a> <a rel="nofollow" shape="rect" target="_blank" href="http://www.twitter.com/joc85"><img src="https://ec.yimg.com/ec?url=http%3A%2F%2Fwww.josecgomez.com%2Fimages%2Ftwitter.png&t=1472996448&sig=jBruXYfdMW9iPcWPIRidYg--~C"></a> <a rel="nofollow" shape="rect" target="_blank" href="http://www.josecgomez.com/professional-resume/"><img src="https://ec.yimg.com/ec?url=http%3A%2F%2Fwww.josecgomez.com%2Fimages%2Fwp.png&t=1472996448&sig=Cza1V7EW96O7U0hsZliVUA--~C"></a> <span style="font-family:verdana, sans-serif;"><a rel="nofollow" shape="rect" target="_blank" href="http://www.josecgomez.com/feed/"><img src="https://ec.yimg.com/ec?url=http%3A%2F%2Fwww.josecgomez.com%2Fimages%2Frss.png&t=1472996448&sig=8Ee3CjMqWU_UHUF00IkOlg--~C"></a> </span></div><div><span lang="LA" style="color:black;"><br clear="none"><font face="Verdana, sans-serif" style="font-weight:bold;" size="1"><i>Quis custodiet

ipsos custodes?



On Wed, Jan 7, 2015 at 8:51 AM, 'Morren, Earl' morren5@… [vantage] <vantage@yahoogroups.com> wrote:

Â
<div>
  
  
  <div>
Greetings all:
Â
I’m working on an upgrade to the Print Packing Slip dialog that will enable users to print attachments associated with each part automatically. I’m using Epicor 9.05.701.
Â
The approach I’m using is to trap an event when the packing slip report is actually printed (using a print queue monitoring routine). But the print queue monitor is watching all of the networked printers, not just the one I sent the packing slip to. It would be desirable to know which printer the report was sent to so I can just monitor that one printer. My problem at this point is that I don’t know how to get a handle to printer setting dialog box so I could query it for the printer name. Do any of you know how to do this?
Â
In a further refinement, I would like to know the name of the file that was actually printed. I would like to filter the events from the printer and only print my attachments when the specific file containing the packing slip report has been printed. As it is, Crystal Reports assigns a temporary file name to the file that is printed. I suppose I could watch the folder where the temporary file is stashed (if I knew where that is) and catch it that way, but I’m hoping that I could get this file name from the print dialog box.
Â
Best regards,
Â
Earl
</div>
 


<div style="color:rgb(255,255,255);min-height:0px;"></div>

</div>
 


<div style="color:rgb(255,255,255);min-height:0px;"></div></div>


</div>
 


<div style="color:rgb(255,255,255);min-height:0px;"></div>