Am Mittwoch, den 12.07.2006, 13:15 -0700 schrieb aloizio:
>  Marc Santhoff,
> 
> That's ok I am using "insertDocumentFromURL()", to merge some DOCs e
> generate a PDF document.
> 
> But I have a Problem. I have three documents (*.doc). The first was
> generated from a HTML document. The second was generated from a Word
> document and the third is a original word document.
> 
> The final PDF document that contains the three files above is created but
> only the third document appears correctly. The first appears like HTML code
> e the second like binary code.
> 
> What I should do to the three files appears correctly in the final document
> that merges them?

Maybe you've got to set the correct filter type before loading?
Something like (BASIC, but shows the technique):

function exportUnpacked(adoc as object, fname as string)
        dim Args(1) as new com.sun.star.beans.PropertyValue
        args(1).Name = "FilterName"
        args(1).Value = "OpenOffice.org 1.0 Text Document"
        args(0).Name = "Overwrite"
        args(0).Value = TRUE
        adoc.loadFromUrl(ConvertToUrl(fname), args())
end function

HTH,
Marc


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

Reply via email to