Bug 116893 - KOrganizer prints empty timetable
Summary: KOrganizer prints empty timetable
Status: RESOLVED FIXED
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: 3.4.2
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Reinhold Kainhofer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-22 18:31 UTC by Michael Stather
Modified: 2006-05-10 21:33 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Stather 2005-11-22 18:31:47 UTC
Version:           3.4.2 (using KDE 3.4.2 Level "b" , SUSE 10.0)
Compiler:          Target: i586-suse-linux
OS:                Linux (i686) release 2.6.13-15-default

I´ve entered some events in KOrganizer and saved it. Now when I want to print them as a timetable
I get a column views with the days but they´re empty.
Comment 1 Andrey Cherepanov 2006-03-13 08:49:01 UTC
Yes, 'print day' outputs only border with day and small calendar. Also '0:00' is printed. Not all hours, any events and tasks. But 'Print week' works correct.
Comment 2 Michael Stather 2006-03-13 18:23:01 UTC
When I tried it I wanted to print a full week and it didn´t work.
Comment 3 Bram Schoenmakers 2006-05-10 21:33:33 UTC
SVN commit 539490 by bram:

Do load and save settings when printing. This will set sane initial values, fixing bug 116893 for example.

BUG:116893
BUG:111301
BUG:126592



 M  +2 -2      interfaces/korganizer/printplugin.h  
 M  +3 -0      printing/calprinter.cpp  
 M  +6 -1      printing/calprintweekconfig_base.ui  


--- branches/KDE/3.5/kdepim/korganizer/interfaces/korganizer/printplugin.h #539489:539490
@@ -92,11 +92,11 @@
     /**
       Load complete config.
     */
-    void doLoadConfig() {}
+    virtual void doLoadConfig() {};
     /**
       Save complete config.
     */
-    void doSaveConfig() {}
+    virtual void doSaveConfig() {};
 
 
   public:
--- branches/KDE/3.5/kdepim/korganizer/printing/calprinter.cpp #539489:539490
@@ -78,6 +78,7 @@
 {
   mCalendar = calendar;
   mPrinter = printer;
+  mHelper = new CalPrintHelper( mPrinter, mCalendar, mConfig, mCoreHelper );
 
   mPrintPlugins.clear();
   mPrintPlugins.setAutoDelete( true );
@@ -95,6 +96,8 @@
     (*it)->setConfig( mConfig );
     (*it)->setCalendar( calendar );
     (*it)->setPrinter( printer );
+    (*it)->setKOrgCoreHelper( mCoreHelper );
+    (*it)->setCalPrintHelper( mHelper );
 
     (*it)->doLoadConfig();
   }
--- branches/KDE/3.5/kdepim/korganizer/printing/calprintweekconfig_base.ui #539489:539490
@@ -14,6 +14,9 @@
             <height>262</height>
         </rect>
     </property>
+    <property name="caption">
+        <string>CalPrintWeek_Base</string>
+    </property>
     <grid>
         <property name="name">
             <cstring>unnamed</cstring>
@@ -128,7 +131,7 @@
                     </property>
                     <property name="time">
                         <time>
-                            <hour>16</hour>
+                            <hour>18</hour>
                             <minute>0</minute>
                             <second>0</second>
                         </time>
@@ -275,6 +278,8 @@
         </widget>
     </grid>
 </widget>
+<customwidgets>
+</customwidgets>
 <tabstops>
     <tabstop>mFromDate</tabstop>
     <tabstop>mFromTime</tabstop>