DOCXReadWrite Document with many page Orientations

Questions and answers on how to use DOCXReadWrite
Post Reply
eteoklis
Posts: 31
Joined: Wed Feb 03, 2021 10:42 am

DOCXReadWrite Document with many page Orientations

Post by eteoklis »

Hello again

I have two simple questions
How can i change the Author of a document since the commands

mDocx.Editor.DocumentProps.Author := 'XXXXXXXX';
mDocx.Editor.Initials := 'XXXXXXX';

do not work

and also can i have a document that has both portrait and landscape pages.

Thanks in advance
DiBase
Posts: 13
Joined: Wed Feb 16, 2022 9:41 pm

Re: DOCXReadWrite Document with many page Orientations

Post by DiBase »

Same problem on my side with release 2.00.49.

Here is my C++ source code which I use (C++ code):

Code: Select all

DOCX->Editor->DocumentProps->Title = "Title...";DOCX->Editor->DocumentProps->Author = "Author...";
DOCX->Editor->DocumentProps->Revision = "Revision...";
DOCX->Editor->DocumentProps->Company = "Company...";
DOCX->Editor->DocumentProps->Comment = "Comment...";
DOCX->Editor->DocumentProps->Tags = "Tags...";
DOCX->Editor->DocumentProps->Subject = "Subject...";
DOCX->Editor->DocumentProps->Categories = "Categories...";
DOCX->Editor->DocumentProps->Status = "Status...";
DOCX->Editor->DocumentProps->Application = "Application...";
DOCX->Editor->DocumentProps->AppVersion = "AppVersion...";
All with no effect when saving like this:

Code: Select all

DOCX->SaveToFile( "sample.docx" );
DOCX->SaveToFile( "sample.pdf" );
Or are these properties only used when opening an existing file?

I would appreciate any hint for a solution.

- Dirk
Post Reply