Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | Print Text Selection: doesn't work in macro or via api | ||
---|---|---|---|
Product: | Writer | Reporter: | winwaed <openoffice> |
Component: | ui | Assignee: | AOO issues mailing list <issues> |
Status: | CONFIRMED --- | QA Contact: | |
Severity: | Trivial | ||
Priority: | P3 | CC: | issues |
Version: | OOo 1.1 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Issue Type: | DEFECT | Latest Confirmation in: | --- |
Developer Difficulty: | --- |
Description
winwaed
2004-05-01 18:37:50 UTC
MRU->JSK: Macro recording... jsk->ab: is this something for you or rather mba? Rather MBA... :-) . Please first try to confirm the issue, thanks. Must wait till a later time. No ressources left at this point. jsk->sw: Can you verify this for the API? Thanks! As winwaed already mentioned the only way to print the current selection is via dispatch API. The macro-recorder produces the following macro: sub Main rem ---------------------------------------------------------------------- rem define variables dim document as object dim dispatcher as object rem ---------------------------------------------------------------------- rem get access to the document document = ThisComponent.CurrentController.Frame dispatcher = createUnoService("com.sun.star.frame.DispatchHelper") rem ---------------------------------------------------------------------- dim args1(2) as new com.sun.star.beans.PropertyValue args1(0).Name = "Copies" args1(0).Value = 1 args1(1).Name = "Selection" args1(1).Value = true args1(2).Name = "Collate" args1(2).Value = false dispatcher.executeDispatch(document, ".uno:Print", "", 0, args1()) end sub Unfortunately the whole text is printed when using this macro and not as intended only the selected text. Reset assigne to the default "issues@openoffice.apache.org". |