![]() ![]() ![]() Later I replace the fields in this document with the option I discovered elsewhere on this site: FileReplace := StarDocument.CreateReplaceDescriptor įileReplace.SearchCaseSensitive := False Īctually the file is a doc-file simply copied to a file with extension odt.Įverything is working fine if I first load the document in OpenOffice and save as Openoffice odt-document, but I want to do that programmaticly. Where AFileURL is the full pathname starting with 'file:///' StarDocument := StarDesktop.LoadComponentFromURL(AFileURL, '_blank', 0, FileParams) I have a document opened in OpenOffice like this: FileParams := VarArra圜reate(, varVariant) įileProperty := StarOffice.Bridge_GetStruct ('.PropertyValue') TLama I could set up a workaround for opening a file, replacing some fields and store the result to pdf using Delphi 2007.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |