To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=76695
                 Issue #|76695
                 Summary|Send to Email Client not working.
               Component|www
                 Version|OOo 2.0
                Platform|PC
                     URL|
              OS/Version|Windows 98
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|openoffice.org Upgrade
             Assigned to|[EMAIL PROTECTED]
             Reported by|msetzerii





------- Additional comments from [EMAIL PROTECTED] Wed Apr 25 18:00:49 +0000 
2007 -------
I have been using OpenOffice for sometime, and have not had a problem with using
it with Pegasus mail up to the 2.2. I did find an older message on Pegasus about
version 1.x, but the mapi worked fine with version up to 2.1 with the send 
option.

I was able to create a little macro that basically adds the ability of sending
the document as a pdf with  no problem, so not sure what the change in the open
Office is.

I basically used cut and paste with a few modifications to a few scripts I
found. The macro hard codes the info, but I had written a macro in WordPerfect
long ago, that pulled this stuff from the registry, but don't know the process
in OpenOffice.



sub pmailtest
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(3) as new com.sun.star.beans.PropertyValue
dim oDoc as object
   dim oTmp as object
   dim fileName as string
   dim fileNameonly as string
   dim fileExt as string
   dim tmpPath as string
   
   BasicLibraries.LoadLibrary("Tools")
   
   tmpPath=GetTmpPath()
   
   if tmpPath="" then
       msgbox error(76)
       exit sub
   end if
        
        tmppath=tmpPath+getPathSeparator()+"oosend"
        if FileExists(tmpPath)=false then
                mkdir(tmpPath)
        end if
    oDoc = StarDesktop.ActiveFrame.Controller.Model

 fileName=FileNameoutofPath(convertfromURL(odoc.geturl()))
 fileNameonly=GetFileNameWithoutExtension(fileName)
   fileExt=GetFileNameExtension(fileName)

args1(0).Name = "URL"
args1(0).Value = "file:///c:/windows/temp/"+fileNameonly+".pdf"
args1(1).Name = "FilterName"
args1(1).Value = "writer_pdf_Export"
args1(2).Name = "FilterData"
args1(2).Value =
Array(Array("UseLosslessCompression",0,false,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("Quality",0,90,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("ReduceImageResolution",0,true,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("MaxImageResolution",0,300,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("UseTaggedPDF",0,false,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("ExportNotes",0,false,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("ExportBookmarks",0,true,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("OpenBookmarkLevels",0,-1,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("UseTransitionEffects",0,true,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("IsSkipEmptyPages",0,false,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("FormsType",0,1,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("ExportFormFields",0,true,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("HideViewerToolbar",0,false,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("HideViewerMenubar",0,false,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("HideViewerWindowControls",0,false,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("ResizeWindowToInitialPage",0,false,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("CenterWindow",0,false,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("OpenInFullScreenMode",0,false,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("DisplayPDFDocumentTitle",0,true,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("InitialView",0,0,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("Magnification",0,0,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("Zoom",0,100,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("PageLayout",0,0,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("FirstPageOnLeft",0,false,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("InitialPage",0,1,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("Printing",0,2,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("Changes",0,4,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("EnableCopyingOfContent",0,true,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("EnableTextAccessForAccessibilityTools",0,true,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("EncryptFile",0,false,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("DocumentOpenPassword",0,"",com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("RestrictPermissions",0,false,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("PermissionPassword",0,"",com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("",0,,com.sun.star.beans.PropertyState.DIRECT_VALUE))
args1(3).Name = "SelectionOnly"
args1(3).Value = true


   if isempty(filename) or filename=""    then
       ShowMessage(MSG_NO_FILENAME)
       exit sub
   end if

dispatcher.executeDispatch(document, ".uno:ExportDirectToPDF", "", 0, args1())
shell("c:\pmail\wsendto.exe",3,"c:/windows/temp/"+fileNameonly+".pdf")

end sub

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to