Page MenuHomePhorge

Printing of contacts doesn't work, no pdf is generated although the dialog works.
Closed, ResolvedPublic5 Story Points

Details

Ticket Type
Task

Event Timeline

mollekopf raised the priority of this task from to 60.
mollekopf updated the task description. (Show Details)
mollekopf added projects: Restricted Project, KDE PIM.
mollekopf changed Ticket Type from Task to Task.
mollekopf subscribed.
mollekopf moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.Sep 4 2015, 5:26 PM
petersen added a subtask: Restricted Maniphest Task.Sep 7 2015, 9:49 AM
petersen added a project: Restricted Project.Sep 7 2015, 1:28 PM
petersen edited a custom field.
knauss moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.Sep 23 2015, 11:13 AM

The printing is quite simple:

  • create QPrinter object (mainwidget.cpp l691)
  • opens a QPrinterDialog.exec(mainwidget.cpp l701; KPrintDialog is only a small wrapper around the qt version)
  • opens the wizzard (mainwidget.cpp l705)
  • run Style.print (f.ex. detailedstyle.cpp l279)
  • creates a QtextDocument with html (detailedstyle.cpp l303)
  • print via Qtextdocument.print(printer) (detailedstyle.cpp l307)

--> so there is nearly no KDE code added, everything is inside qt.

checked the textDocument, that looks good:

QTextEdit *edit(new QtextEdit);
edit->setDocument(&document);
edit->show();
QEventLoop loop;
loop.exec();

so the problem is the the printer object.

Checked the settings and relaised, that these settings are not updated.

KDEPrint is only a small wrapper, that does not modified printer at all.

knauss moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.Sep 23 2015, 1:18 PM
knauss moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.
knauss closed subtask Restricted Maniphest Task as Resolved.Oct 1 2015, 12:17 PM