[Libreoffice-bugs] [Bug 43277] Base Legacy Report "E-Mail as PDF" gives error instead of opening Evolution

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jul 30 19:24:39 CEST 2012


https://bugs.freedesktop.org/show_bug.cgi?id=43277

--- Comment #15 from Lionel Elie Mamane <lionel at mamane.lu> 2012-07-30 17:24:39 UTC ---
Traced the calls; the difference is in SfxMailModel::SaveDocumentAsFormat in
file sfx2/source/dialog/mailmodel.cxx

Interesting things happen around line 419:

In the working case (Report Builder report), aQuery looks like:


uno::Sequence of length 3 = {{
    Name = "Type", 
    Value = uno::Any "pdf_Portable_Document_Format"
  }, {
    Name = "DocumentService", 
    Value = uno::Any "com.sun.star.text.TextDocument"
  }, {
    Name = "Flags", 
    Value = uno::Any 524354
  }}

and then xEnumeration->hasMoreElements() is true and aFilterName is set.

In the not working case (legacy report), aQuery looks like:


uno::Sequence of length 3 = {{
    Name = "Type", 
    Value = uno::Any "pdf_Portable_Document_Format"
  }, {
    Name = "DocumentService", 
    Value = uno::Any "com.sun.star.sdb.TextReportDesign"
  }, {
    Name = "Flags", 
    Value = uno::Any 524354
  }}


and xEnumeration->hasMoreElements() is false, and aFilterName is not set. Thus
on line 485, the procedure aborts because "aFilterName.getLength() == 0".

Now we need to find someone that understands this filter lookup stuff...

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Libreoffice-bugs mailing list