<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Data Connections</title><link>https://www.infopathdev.com:443/forums/44.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>InfoPath 2007 RightFax automation issue C#</title><link>https://www.infopathdev.com:443/forums/thread/98943.aspx</link><pubDate>Thu, 04 Sep 2014 17:08:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:98943</guid><dc:creator>Wheels</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/98943.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=98943</wfw:commentRss><description>&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;"&gt;We are experiencing
an issue with image quality and missing information on the InfoPath form when
submitted automatically using the email Data Connection. When a user faxes the
form manually (File --&amp;gt; PPrint --&amp;gt; RightFax fax printer) it displays
correctly. The reason for this is the &lt;/span&gt;&lt;span style="font-size:10pt;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-bidi-font-family:Calibri;"&gt;PTF driver image quality with differs
from the image quality of the &lt;/span&gt;&lt;span style="font-size:11pt;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;"&gt;RF printer driver. &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:11pt;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;"&gt;&lt;/span&gt;&lt;span style="font-size:11pt;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;"&gt;I wrote some C# code to set the
properties and submit as follows:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:11pt;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;"&gt;this.SaveAs(&amp;quot;C:\\Data\\Excel\\InfoPath.xsn&amp;quot;);
&lt;br /&gt;
&lt;br /&gt;
// Write your code here.&lt;br /&gt;
RFCOMAPILib.FaxServerClass faxserver = new RFCOMAPILib.FaxServerClass();&lt;br /&gt;
faxserver.ServerName = &amp;quot;RightFax&amp;quot;;&lt;br /&gt;
faxserver.Protocol = RFCOMAPILib.CommunicationProtocolType.cpNamedPipes;&lt;br /&gt;
faxserver.UseNTAuthentication = RFCOMAPILib.BoolType.True;&lt;br /&gt;
faxserver.OpenServer();&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:11pt;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;"&gt;RFCOMAPILib.Fax fax =
(RFCOMAPILib.Fax)faxserver.get_CreateObject(RFCOMAPILib.CreateObjectType.coFax);&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:11pt;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;"&gt;// set up your &amp;#39;fax&amp;#39; object the way
you want it, below is just some sample options&lt;br /&gt;
fax.ToName = &amp;quot;Recipient&amp;quot;; &lt;br /&gt;
fax.ToFaxNumber = &amp;quot;1234567890&amp;quot;;&lt;br /&gt;
fax.ToVoiceNumber = &amp;quot;1234567890&amp;quot;;&lt;br /&gt;
fax.ToCompany = &amp;quot;ToCompany&amp;quot;;&lt;br /&gt;
fax.FromName = &amp;quot;FromCompany&amp;quot;;&lt;br /&gt;
fax.FromVoiceNumber = &amp;quot;1234567890&amp;quot;;&lt;br /&gt;
fax.IsFineMode = RFCOMAPILib.BoolType.True; &lt;br /&gt;
fax.Attachments.Add(&amp;quot;C:\\Data\\Excel\\InfoPath.xsn&amp;quot;, RFCOMAPILib.BoolType.False);
&lt;br /&gt;
fax.Send();&lt;br /&gt;
faxserver.CloseServer();&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:11pt;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;"&gt;This works (not well), but I think
this is a half-baked way of doing it. What I would like is the following:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:11pt;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;"&gt;* If InfoPath had a printer Data
Source this would be ideal.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:11pt;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;"&gt;&lt;/span&gt;&lt;span style="font-size:11pt;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;"&gt;* If I go with the C# code, I would
need to figure out how to &amp;#39;attach&amp;#39; the current form to be included in the body
of the fax.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:11pt;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;"&gt;Thank you, WHEELS&lt;/span&gt;&lt;span style="font-size:10pt;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;/p&gt;</description></item></channel></rss>