<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: problem with multiple SwitchView / problem with print to pdf-file</title><link>https://www.infopathdev.com:443/forums/thread/39332.aspx</link><pubDate>Mon, 09 Mar 2009 12:56:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39332</guid><dc:creator>jb.mulder</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39332.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=39332</wfw:commentRss><description>&lt;p&gt;InfoPath can not switch views more than once within the same method call.&lt;/p&gt;&lt;p&gt;Maybe you could try putting the view switch logic in an separate method and then call that method. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: problem with multiple SwitchView / problem with print to pdf-file</title><link>https://www.infopathdev.com:443/forums/thread/26439.aspx</link><pubDate>Wed, 13 Feb 2008 15:25:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26439</guid><dc:creator>wltr-Germany</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26439.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=26439</wfw:commentRss><description>&lt;p&gt;Thanks for your answer!&lt;/p&gt;
&lt;p&gt;Yes, I can get one view to work&amp;nbsp;(the first SwitchView and the following print).&lt;/p&gt;
&lt;p&gt;Then I have a problem with the second SwitchView - it failed.&lt;/p&gt;
&lt;p&gt;Program source&amp;nbsp;code:&lt;/p&gt;
&lt;p&gt;--------------------&lt;/p&gt;
&lt;p&gt;SwitchView&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp; it works&lt;/p&gt;
&lt;p&gt;this.Print&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp; it works and the first pdf file is created&lt;/p&gt;
&lt;p&gt;SwitchView&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp; it failed&amp;nbsp; (error-message: view not ready)&lt;/p&gt;
&lt;p&gt;--------------------&lt;/p&gt;
&lt;p&gt;Example for Test:&lt;/p&gt;
&lt;p&gt;public void buttonx_Clicked(object sender, ClickedEventArgs e)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.ViewInfos.SwitchView(&amp;quot;View1&amp;quot;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // it works&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.ViewInfos.SwitchView(&amp;quot;View2&amp;quot;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // failure -&amp;nbsp;&amp;nbsp;why?&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;I need a multiple&amp;nbsp;SwitchView, because I need for each view it´s own pdf file.&amp;nbsp; (Sequence: Switch - Print - Switch - Print - Switch - Print - ...)&lt;/p&gt;
&lt;p&gt;With page breaks I&amp;nbsp;cannot generate several pdf files - or?&lt;/p&gt;
&lt;p&gt;Perhaps I need for this the following hotfix?&lt;/p&gt;
&lt;h4 class="CommentTitle"&gt;&lt;a href="http://www.infopathdev.com/blogs/agni/archive/2006/04/24/Improve-Rendering-Performance-for-a-Slow-View.aspx"&gt;http://www.infopathdev.com/blogs/agni/archive/2006/04/24/Improve-Rendering-Performance-for-a-Slow-View.aspx&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;Cheers&lt;/p&gt;</description></item><item><title>Re: problem with multiple SwitchView / problem with print to pdf-file</title><link>https://www.infopathdev.com:443/forums/thread/26427.aspx</link><pubDate>Wed, 13 Feb 2008 14:18:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26427</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26427.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=26427</wfw:commentRss><description>&lt;p&gt;Typically you would want just one print view, and in your case very large. Use page breaks to keep the pages seperate.&lt;/p&gt;
&lt;p&gt;I believe the issue is with the switching of the views.&amp;nbsp;I have seen this before where trying to change to multiple views. I am assuming that you can get one view to work.&lt;/p&gt;
&lt;p&gt;We use CutePDF writer, it is a free PDF creator.&amp;nbsp; I am not sure what the options are for automation.&lt;/p&gt;</description></item><item><title>problem with multiple SwitchView / problem with print to pdf-file</title><link>https://www.infopathdev.com:443/forums/thread/26423.aspx</link><pubDate>Wed, 13 Feb 2008 11:02:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26423</guid><dc:creator>wltr-Germany</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26423.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=26423</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;
I have an infopath form with 20 print views. I want to print this views automatically to pdf files (see below). Every View is printed to it´s own pdf file.&amp;nbsp; 
With the second view change appears the following error message:&lt;/p&gt;&lt;p&gt;(&amp;quot;Von InfoPath können keine ansichtsbezogenen Objektmodellaufrufe ausgeführt werden. Die Ansicht ist nicht bereit&amp;quot;)&amp;nbsp;&lt;/p&gt;&lt;p class="MsoNormal"&gt;error-message: &amp;quot;&lt;font color="navy" face="Arial" size="2"&gt;&lt;span style="font-size:10pt;color:navy;font-family:Arial;"&gt;&lt;/span&gt;&lt;/font&gt;No view-related object model calls can be explained by InfoPath. The view is not ready&amp;quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;  (my translation!)&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;font color="navy" face="Arial" size="2"&gt;&lt;span style="font-size:10pt;color:navy;font-family:Arial;"&gt;:&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;font color="navy" face="Arial" size="2"&gt;&lt;span style="font-size:10pt;color:navy;font-family:Arial;"&gt;this.ViewInfos.SwitchView 
(„View03“);&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;font color="navy" face="Arial" size="2"&gt;&lt;span style="font-size:10pt;color:navy;font-family:Arial;"&gt;this.Print();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp; print pdffile03.pdf&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;font color="navy" face="Arial" size="2"&gt;&lt;span style="font-size:10pt;color:navy;font-family:Arial;"&gt;:&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;font color="navy" face="Arial" size="2"&gt;&lt;span style="font-size:10pt;color:navy;font-family:Arial;"&gt;this.ViewInfos.SwitchView 
(&lt;/span&gt;&lt;/font&gt;&lt;font color="navy" face="Arial" size="2"&gt;&lt;span style="font-size:10pt;color:navy;font-family:Arial;"&gt;„View17“&lt;/span&gt;&lt;/font&gt;&lt;font color="navy" face="Arial" size="2"&gt;&lt;span style="font-size:10pt;color:navy;font-family:Arial;"&gt;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; // Error: The view is not ready!!!!!!!!!!!!!!!!!!!!&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;font color="navy" face="Arial" size="2"&gt;&lt;span style="font-size:10pt;color:navy;font-family:Arial;"&gt;this.Print();&lt;/span&gt;&lt;/font&gt;&lt;font color="navy" face="Arial" size="2"&gt;&lt;span style="font-size:10pt;color:navy;font-family:Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp; print pdffile17.pdf&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;font color="navy" face="Arial" size="2"&gt;&lt;span style="font-size:10pt;color:navy;font-family:Arial;"&gt;:&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;font color="navy" face="Arial" size="2"&gt;&lt;span style="font-size:10pt;color:navy;font-family:Arial;"&gt;this.ViewInfos.SwitchView 
(&lt;/span&gt;&lt;/font&gt;&lt;font color="navy" face="Arial" size="2"&gt;&lt;span style="font-size:10pt;color:navy;font-family:Arial;"&gt;„View18“&lt;/span&gt;&lt;/font&gt;&lt;font color="navy" face="Arial" size="2"&gt;&lt;span style="font-size:10pt;color:navy;font-family:Arial;"&gt;);&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;font color="navy" face="Arial" size="2"&gt;&lt;span style="font-size:10pt;color:navy;font-family:Arial;"&gt;this.Print();&lt;/span&gt;&lt;/font&gt;&lt;font color="navy" face="Arial" size="2"&gt;&lt;span style="font-size:10pt;color:navy;font-family:Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp; print pdffile18.pdf&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;font color="navy" face="Arial" size="2"&gt;&lt;span style="font-size:10pt;color:navy;font-family:Arial;"&gt;:&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;PDF Software:&amp;nbsp;&lt;/p&gt;&lt;p class="MsoNormal"&gt;
Which software can you recommend to me?&lt;br /&gt;
I need PDF software which should be able to specify file name. (Sample Code?)&lt;/p&gt;&lt;p class="MsoNormal"&gt;Thanks for your help&amp;nbsp;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>