Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) printing (Read 6569 times)
madrider
YaBB Newbies
*
Offline



Posts: 15
Joined: Jul 30th, 2007
printing
Jan 29th, 2008 at 8:31pm
Print Post  
I have two forms with the calendar control on each one. On form A, the calendar prints fine with the time increments on top. But, on form B, the calendar does not print the time increments on top and also the rows are printed much shorter.  Also, the cells and the resources are much smaller. Do you have any ideas why? This is on a Brother HL-5140 Laser printer. Everthing prints fine on our big Xerox printer but this app will be deployed to many restaurants using the smaller Brother printer.  Please help.
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: printing
Reply #1 - Jan 30th, 2008 at 7:47am
Print Post  
Which view are you using? Is the problem visible on the print preview as well, and if so, can you provide me with a screenshot of it? It will help if you can provide me with the initialization settings of you view.

Meppy
  
Back to top
 
IP Logged
 
madrider
YaBB Newbies
*
Offline



Posts: 15
Joined: Jul 30th, 2007
Re: printing
Reply #2 - Feb 6th, 2008 at 7:38pm
Print Post  
Printing it in landscape seems to print OK but I set the PrintOptions.Landscape = true but the user still has to set the orientation to landscape. Is there a way to just print in Landscape without any user input? I am using resource view and no print preview.


public void Print(IList<DateTimeRange> ranges)
{
DateTimeRange originalRange = new DateTimeRange(CalendarControl1.GetFirstDate(), CalendarControl1.GetLastDate());
           
PrintOptions options = alendarControl1.PrintOptions;
      
           this.DateRanges = ranges;

           if (DateRanges != null && DateRanges.Count > 0)
           {
              
               DateTimeRange range = ranges[0];
               CalendarControl1.Resources.Clear();
               CalendarControl1.Schedule.Resources.Clear();

               AddEmployeeResourcesForPrinting(range.From, range.To);
               CalendarControl1.Date = range.From;
               CalendarControl1.EndDate = range.To;

               options.DocumentName = string.Format("Daily Schedule for {0}", range.From.Date.ToShortDateString());
              
               options.FitToPage = true;
               //options.HeaderFormat = "Header Format";
               options.Landscape = true;
                                               
               // Now Print it
               CalendarControl1.Print();            
          }

}
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: printing
Reply #3 - Feb 7th, 2008 at 6:25am
Print Post  
Here is a modified version of Planner.NET:

https://mindfusion.org/_planner/_Planner.NET_43pre_trial3.zip

The Print(PrintDocument) method will now always consider the value of the PrintOptions.Landscape property of the Calendar control. Additionally, the print dialog displayed by the Print() method will now have its Landscape/Portrait settings initialized according to the value of the PrintOptions.Landscape property.

Meppy
  
Back to top
 
IP Logged
 
madrider
YaBB Newbies
*
Offline



Posts: 15
Joined: Jul 30th, 2007
Re: printing
Reply #4 - Feb 7th, 2008 at 7:48pm
Print Post  
I get this error when I try to reference the new dlls.


Error17Invalid Resx file. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) Line 170, position 5.C:\Src\RestaurantSystems\XPient\LaborScheduling.Net\Source\LaborScheduling\Use
rControls\ActualDailyScheduleEditorControl.resx1705LaborScheduling
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: printing
Reply #5 - Feb 8th, 2008 at 6:52am
Print Post  
Have you tried to fully rebuild your project?

Meppy
  
Back to top
 
IP Logged
 
madrider
YaBB Newbies
*
Offline



Posts: 15
Joined: Jul 30th, 2007
Re: printing
Reply #6 - Feb 8th, 2008 at 5:20pm
Print Post  
Yes. It fails on the build with the error message above.
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: printing
Reply #7 - Feb 11th, 2008 at 7:10am
Print Post  
Have you tried setting the PublicKeyToken of the Calendar entry in the licenses.licx file to null and rebuilding again?

Meppy
  
Back to top
 
IP Logged
 
madrider
YaBB Newbies
*
Offline



Posts: 15
Joined: Jul 30th, 2007
Re: printing
Reply #8 - Feb 11th, 2008 at 3:17pm
Print Post  
Yes I have and I get the same error as above.
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: printing
Reply #9 - Feb 12th, 2008 at 8:14am
Print Post  
The deserialization of our Style objects appears to occasionally fail across different versions of the assembly. The version below should fix this, but it will still not be possible to deserialize previously serialized styles.

https://mindfusion.org/_planner/_Planner.NET_43pre_trial4.zip

You have to manually edit your resx files and remove all serialized Style entries there. You have to also remove the Style assignment in the Controls' Designer files. Then you should be able to compile your project. You have to recreate your styles in the VS designer once the project compiles successfully.

Meppy
  
Back to top
 
IP Logged
 
madrider
YaBB Newbies
*
Offline



Posts: 15
Joined: Jul 30th, 2007
Re: printing
Reply #10 - Feb 12th, 2008 at 11:31pm
Print Post  
I get this error with the new components. I tried setting the PublicKeyToken=null with the same results.

Error1Exception occurred creating type 'MindFusion.Scheduling.WinForms.Calendar, Calendar, Version=4.3.1.21668, Culture=neutral, PublicKeyToken=9bbcdceda2685d38' System.ComponentModel.LicenseException: Couldn''t get design-time license for ''MindFusion.Scheduling.WinForms.Calendar''C:\Src\RestaurantSystems\XPient\Labor
Scheduling.Net\Source\LaborScheduling\Properties\licenses.licx5LaborScheduling


  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: printing
Reply #11 - Feb 13th, 2008 at 6:18am
Print Post  
Can you tell me the version of your originally installed Planner.NET assembly?

Meppy
  
Back to top
 
IP Logged
 
madrider
YaBB Newbies
*
Offline



Posts: 15
Joined: Jul 30th, 2007
Re: printing
Reply #12 - Feb 13th, 2008 at 11:03pm
Print Post  
This is what the license.licx says

MindFusion.Scheduling.WinForms.Calendar, Calendar, Version=4.2.0.27259, Culture=neutral,



Assembly version
4.2.2.17825

  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: printing
Reply #13 - Feb 14th, 2008 at 7:17am
Print Post  
Try locating the following key in the Windows Registry:

Code
Select All
HKEY_LOCAL_MACHINE\SOFTWARE\MindFusion Limited 


Rename this key to:

Code
Select All
HKEY_LOCAL_MACHINE\SOFTWARE\MindFusion 


Then reopen the project again and recompile. Let me know if there is any improvement.

Meppy
  
Back to top
 
IP Logged
 
madrider
YaBB Newbies
*
Offline



Posts: 15
Joined: Jul 30th, 2007
Re: printing
Reply #14 - Feb 27th, 2008 at 7:26pm
Print Post  
No change I still get:

Error14Exception occurred creating type 'MindFusion.Scheduling.WinForms.Calendar, Calendar, Version=4.3.1.21668, Culture=neutral, PublicKeyToken=9bbcdceda2685d38' System.ComponentModel.LicenseException: Couldn''t get design-time license for ''MindFusion.Scheduling.WinForms.Calendar''C:\Src\RestaurantSystems\XPient\Labor
Scheduling.Net\Source\LaborScheduling\Properties\licenses.licx5LaborScheduling
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint