Issue 118893 - Macro assigned to print event doesn't execute.
Summary: Macro assigned to print event doesn't execute.
Status: CLOSED DUPLICATE of issue 121810
Alias: None
Product: Writer
Classification: Application
Component: editing (show other issues)
Version: OOo 3.3
Hardware: PC Linux, all
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-09 12:08 UTC by davide
Modified: 2014-07-07 10:06 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Macro example (9.19 KB, application/vnd.oasis.opendocument.text)
2012-02-09 12:08 UTC, davide
no flags Details
Modified version (11.17 KB, application/vnd.oasis.opendocument.text)
2014-07-07 10:05 UTC, Ariel Constenla-Haile
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description davide 2012-02-09 12:08:33 UTC
Created attachment 77199 [details]
Macro example

I'd like to run a macro when I start a printing job. Therefore I've assigned such macro to print document event.
Unfortunately when I print the document the macro doesn't start.

Attached there is an example of a macro opening a msgbox when I open the document and when I print it. The first runs but not the second.
Comment 1 stfhell 2012-11-30 14:06:22 UTC
I can confirm this bug with AOO 3.4.1. Also present in LibreOffice 3.5-3.7, see:
https://bugs.freedesktop.org/show_bug.cgi?id=57626
Comment 2 oooforum (fr) 2014-07-07 09:42:34 UTC
FYI, LibO has this issue fixed since 3.6
Comment 3 Ariel Constenla-Haile 2014-07-07 09:54:20 UTC
Isn't this bug 121810? I cannot reproduce.

 (In reply to oooforum from comment #2)
> FYI, LibO has this issue fixed since 3.6

FYI that's because they took my fix in Revision 1449533 ;)
Comment 4 Ariel Constenla-Haile 2014-07-07 10:05:43 UTC
Created attachment 83650 [details]
Modified version

Added two macros:

Sub OnPrint
msgbox "On Print!!"
End Sub

Sub OnPrintFormLetter
msgbox "On Print Form Letter!!"
End Sub

Both work with the respective event
Comment 5 Ariel Constenla-Haile 2014-07-07 10:06:31 UTC
Dup of bug 121810
Fixed with Revision 1449533

*** This issue has been marked as a duplicate of issue 121810 ***