I'm trying get the page count with this code, but the message returns 0
with TDOCXReadWrite.Create(nil) do
try
LoadFromFile(Path);
ShowMessage(IntToStr(Editor.Pages.Count));
finally
Free;
end;
How could I get the page count of a document? Thanks.
How could I get the page count of a document?
Re: How could I get the page count of a document?
Hello
You must preview the document in order to get the page count. Pages don't exists until the document is paginated.
You must preview the document in order to get the page count. Pages don't exists until the document is paginated.
Lars Arvidsson, Axolot Data
Re: How could I get the page count of a document?
Hello
Is it possible to <<preview>> the document in order to get the pagination working with out showing the actual preview form?
Thanks in advance
Is it possible to <<preview>> the document in order to get the pagination working with out showing the actual preview form?
Thanks in advance
Re: How could I get the page count of a document?
Hello
Open the file AXWPreviewVcl.pas and take a look at the procedure UpdateUI.
Open the file AXWPreviewVcl.pas and take a look at the procedure UpdateUI.
Lars Arvidsson, Axolot Data
Re: How could I get the page count of a document?
Hello
You have to direct us more. Or send us the code .
Thanks in advance
You have to direct us more. Or send us the code .
Thanks in advance