Date: prev next · Thread: first prev next last
2019 Archives by date, by thread · List index


Hi

I have been using the following code to select the whole SWriter document
from Visual FoxPro.  However, if the document contains a table the code only
selects the 1st cell in the table.  How do I change my code so that it
selects the whole document even if the document contains tables etc.? The
reason for selecting the whole document is for a type of mail merge where I
insert a new page as an exact copy of the original document and merge the
data. I repeat this process for each record in the table.


loDsp=.oMergeSrvMgr.createInstance("com.sun.star.frame.DispatchHelper")
 Dimen laArgs(1)

laArgs(1)=.oMergeSrvMgr.Bridge_GetStruct("com.sun.star.beans.PropertyValue")
 loDsp.executeDispatch(.oMergeDoc.getCurrentController().getFrame(),
".uno:SelectAll", "", 0, @laArgs)
 .oMergeText = .oMergeDoc.getCurrentController().getTransferable()

Thanks,
Simon



--
Sent from: http://document-foundation-mail-archive.969070.n3.nabble.com/Users-f1639498.html

-- 
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.