Hello Sergey,
saveing a DocX / RTF with ScaleRichView generates a header and footer, also if there is none, with an empty paragraph which uses the document "default?" first style?
In some of my cases the height of header and footer is set to zero or even a very small value and the pages borders too.
But if I open the new saved files with MS Word - the header/footer height is increased according to the empty paragraph's font height.
Which moves the whole layout verticaly.
Original DOCX in Word @100%
After save with ScaleRichView
you can see the newly generated paragraph - this changes the print result and PDF export of MS Word to move the whole layout.
(If I deleted the empty paragraph all is fine again)
Is there a way in ScaleRichView to suppress the storage of empty headers and footers?
Useing plain TRichView I can do something like this before saveing:
if rvHeader_Normal.RVData.IsEmpty then
rvBody.SetHeader(nil, TRVHFType.rvhftNormal);
- but I think this should happen inside the default save logic?
With best regards
André
Empty Header and Footer problem
Empty Header and Footer problem
- Attachments
-
- DocumentWithoutHeaderAndFooters_MSWord.docx
- Just for info the Original DOCX
- (14.32 KiB) Downloaded 1984 times
-
- DocumentWithoutHeaderAndFooters_ScaleRichView.docx
- The ScaleRichView generated DOCX
- (5.87 KiB) Downloaded 1906 times
-
- Site Admin
- Posts: 17602
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: Empty Header and Footer problem
I'll check this problem at the beginning of the next week.
I this week I need to complete Delphi 12-compatible update.
I this week I need to complete Delphi 12-compatible update.
Re: Empty Header and Footer problem
Ok - tested - works - one point less on the list.
With Version 22.2 at least. Thank You
With Version 22.2 at least. Thank You