Delphi:10.2
TRichView:17(16.17)
SRichview:8
The save as docx function worked perfect with old version , now lost the header and footer.Everything is ok when displaying in the SrichViewEdit.
Save as docx lost the header and footer(TRichview17/SRichview8)
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: Save as docx lost the header and footer(TRichview17/SRichview8)
I cannot reproduce this problem.
Make sure that rvrtfSaveHeaderFooter is included in SclRView.RTFOptions
Make sure that rvrtfSaveHeaderFooter is included in SclRView.RTFOptions
Re: Save as docx lost the header and footer(TRichview17/SRichview8)
I am sure TSclRView.RTFOptions include [rvrtfSaveHeaderFooter], and I am sure my software worked fine before I rebuilt it with the new version.
Thank u!
Thank u!
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: Save as docx lost the header and footer(TRichview17/SRichview8)
Can you reproduce this problem in our demos?
For example, I run ScaleRichView\Demos\ActionTestTabs\ActionTestUni.dproj. When it starts, it loads a file with a normal header. I saved it as DocX, and the header is there. I also loaded an RTF file containing all 6 possible headers and footers, and it was saved as DocX with all of them.
I use TRichView version with some modifications after v16.17, but they must not affect this problem.
For example, I run ScaleRichView\Demos\ActionTestTabs\ActionTestUni.dproj. When it starts, it loads a file with a normal header. I saved it as DocX, and the header is there. I also loaded an RTF file containing all 6 possible headers and footers, and it was saved as DocX with all of them.
I use TRichView version with some modifications after v16.17, but they must not affect this problem.
Re: Save as docx lost the header and footer(TRichview17/SRichview8)
I have post my test rvf file to ur gamail. I opened it with the demo application, and exported ,it lost the header and footer too.
By the way,I opened the same file with an older version of the demo ,the exported result is correct!
By the way,I opened the same file with an older version of the demo ,the exported result is correct!
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: Save as docx lost the header and footer(TRichview17/SRichview8)
I confirm this problem. It will be fixed in the next update.
Quick fix:
Open RichView.pas, find all checks for RTFReaderAssigned and remove them. I.e. search for the substring "RTFReaderAssigned and" and remove it (3 times).
Actually, now you can remove function RTFReaderAssigned: Boolean from TCustomRichView and TRVTableInplaceEdit classes at all.
Quick fix:
Open RichView.pas, find all checks for RTFReaderAssigned and remove them. I.e. search for the substring "RTFReaderAssigned and" and remove it (3 times).
Actually, now you can remove function RTFReaderAssigned: Boolean from TCustomRichView and TRVTableInplaceEdit classes at all.
Re: Save as docx lost the header and footer(TRichview17/SRichview8)
Now everything is ok:) Thank u very much!