|
|
Table rows expand even when set to 'exactly' a specified height.
-
03-24-2009, 11:06 AM |
|
|
Table rows expand even when set to 'exactly' a specified height.
Attachment: Present (inaccessible)
We purchased an OEM license last September and have run into this problem with a number of our clients. We provide our clients the ability to generate PDF reports fromWord Mail Merge documents by using ASPOSE.WORDS and ASPOSE.PDF (.NET). The documents are typically designed with tables. Some cells in those tables get populated with free-form text of indeterminate length.
Users set Table Properties/Rows in Word to 'Exactly' a specific height and set Cell properties to 'Wrap Text.' Word renders the documents correctly -- if there is more text than will fit in a table cell, Word truncates the text, preserving the page format. When we use ASPOSE.WORDS/ASPOSE.PDF, the documents are not rendered correctly in PDF format -- the table rows expand to accommodate all text in the cell when the text should be truncated. This disrupts the page format.
I have attached a Word document and simple .TXT datasource file that demonstrates this problem. The cells that show the problem are in the lower right corner of the page (3 'Comments' cells). This problem has been brought up to us by several of our clients, and we would like to provide a solution. Thanks.
Bill Schenck
|
|
-
03-24-2009, 6:31 PM |
-
codewarior
-
-
-
Joined on 05-05-2008
-
-
Posts 7,235
-
-
-
-
-
|
Re: Table rows expand even when set to 'exactly' a specified height.
Hello Bill,
Can you please share some information regarding Aspose.Pdf and Aspose.Words version that you are using and also it would be more convenience for us while understanding the problem, if you could share the sample PDF that you are generating? During my test I am unable to load the contents from .txt file into word and when I've provided some sample text, the output seems to be correct.
Nayyer Shahbaz Support Developer, Aspose Sialkot Team About Us Contact UsKeep in touch! We're on Twitter and Facebook
|
|
-
03-25-2009, 7:43 AM |
-
wrschenck
-
-
-
Joined on 08-27-2008
-
-
Posts 39
-
-
-
-
-
|
Re: Table rows expand even when set to 'exactly' a specified height.
Attachment: Present (inaccessible)
Hi,
We are running ASPOSE.WORDS 6.0.1 and ASPOSE.PDF 3.9.0.
I have attached a pdf that demonstrates the problem -- look at the 3 tables on the lower right labeled "Comments -- Term 1" (and then Term 2 and Term 3). The row height is set in the Word document to 'exactly' .5 inches. The document is supposed to be limited to a single page.
As you can see in the PDF, the 3 cells expand to accommodate all text and the document grows to 2 pages when converted to PDF. If you view the document in Word using the attached text file as a datasource, the cells are limited to .5 inches and the document remains at 1 page.
Thanks,
Bill
|
|
-
03-25-2009, 3:55 PM |
-
codewarior
-
-
-
Joined on 05-05-2008
-
-
Posts 7,235
-
-
-
-
-
|
Re: Table rows expand even when set to 'exactly' a specified height.
Attachment: Present (inaccessible)
Hello Bill,
I've tried opening the word file but while reading the contents from .txt file, it shows a message "Record 1 contained too few data fields" and keeps displaying the message till the filed 6. As a workaround, I extracted the information of 3 cells from the PDF you have shared and added the information into word file, but the cells height is too small to accommodate and display the text completely. During my conversion of Word2PDF using Aspose.Pdf and Aspose.Words I've noticed that cells are moved to second page, whereas using the direct to PDF save method of Aspose.Words, all the cells are remained on single page, but text is not displaying correctly.
The updated word file and resultant PDF using direct save method are in attachment, please take a look.
I would request you to, share the word file that contains the contents from .txt file or generate another word file with a reference of .txt file over "c:\" root c, so that we can again test the issue without any problem.
Nayyer Shahbaz Support Developer, Aspose Sialkot Team About Us Contact UsKeep in touch! We're on Twitter and Facebook
|
|
-
03-26-2009, 1:57 PM |
-
wrschenck
-
-
-
Joined on 08-27-2008
-
-
Posts 39
-
-
-
-
-
|
Re: Table rows expand even when set to 'exactly' a specified height.
Attachment: Present (inaccessible)
Hi Nayyer,
Sorry for the invalid TXT file. I have removed a few excess carriage-returns, and you should be able to load it without error now. I have re-attached both the Word document and the .TXT datasource. I moved the datasource to 'c:\'.
Again, the problem is this: the 3 Comment tables in the lower right side of the document are set to a row height of exactly .5". The text for those 3 fields in the datasource is too long for those tables and should be truncated. Word truncates the text, but ASPOSE.PDF does not -- rather, it expands the row height and pushes the document to 2 pages.
Thanks,
Bill
|
|
-
03-26-2009, 5:28 PM |
-
codewarior
-
-
-
Joined on 05-05-2008
-
-
Posts 7,235
-
-
-
-
-
|
Re: Table rows expand even when set to 'exactly' a specified height.
Attachment: Present (inaccessible)
Hi Bill,
I am afraid I am still unable to open the word documents. I’ve both the files in “c:\” and when I try to open the word file it prompts me for the execution of SQL query, and after the selection of “yes” it prompts “cannot find the data source”.
Please take a look over the images in attachment. Do you think I need to have some particular configuration over my system in order to test the scenario ?
Nayyer Shahbaz Support Developer, Aspose Sialkot Team About Us Contact UsKeep in touch! We're on Twitter and Facebook
|
|
-
03-27-2009, 2:37 PM |
-
wrschenck
-
-
-
Joined on 08-27-2008
-
-
Posts 39
-
-
-
-
-
|
Re: Table rows expand even when set to 'exactly' a specified height.
Attachment: Present (inaccessible)
Hello Nayyer,
I don't know why you are having that problem. When I put the .doc and the .txt files in my root directory, the document still finds the datasource file. What happens when you click 'find datasource'?
In any case, I have made up a new, simplified Word document named ASPOSE1.DOC to demonstrate the problem. I created it in my root directory, and set it to use the datasource GILLIS ELEMENTARY.TXT, also located in the root directory. When you load the datasource in Word, the text is truncated as it should be. When you process the file through ASPOSE.PDF, the text is not truncated and the table rows are expanded.
I have attached 3 files: ASPOSE1.DOC
GILLIS ELEMENTARY.TXT
ASPOSE1.PDF (shows the problem -- the rows should be limited to 1/2 inch in height)
Thanks,
Bill
|
|
-
03-31-2009, 1:44 PM |
-
wrschenck
-
-
-
Joined on 08-27-2008
-
-
Posts 39
-
-
-
-
-
|
Re: Table rows expand even when set to 'exactly' a specified height.
Hello Nayyer,
I responded to your post on 3/27, but haven't heard anything from you since then. Have you seen my post from 3/27, with the new attachments? Thanks.
Bill
|
|
-
03-31-2009, 4:15 PM |
-
codewarior
-
-
-
Joined on 05-05-2008
-
-
Posts 7,235
-
-
-
-
-
|
Re: Table rows expand even when set to 'exactly' a specified height.
Hello Bill,
Sorry for replying you late.
I checked your post and tried opening the new files over my system, but even then I faced same issues while reading the contents of TXT file into Word document. So I asked my fellow worker to check the issue. I am very sorry for such delay and I must have mentioned it earlier that even when he tested, he was also unable to get the contents into word file.
Isn't it possible that, you open the word file, read the contents from TXT file, save the updated word file and then share the word document, so that we can test the scenario using this approach. Do you think it’s convenient for you ?
Nayyer Shahbaz Support Developer, Aspose Sialkot Team About Us Contact UsKeep in touch! We're on Twitter and Facebook
|
|
-
04-01-2009, 9:52 AM |
-
wrschenck
-
-
-
Joined on 08-27-2008
-
-
Posts 39
-
-
-
-
-
|
Re: Table rows expand even when set to 'exactly' a specified height.
Attachment: Present (inaccessible)
Hello Nayyer,
I have attached ASPOSE3.DOC. This document has the datasource text already loaded and saved. Currently, table properties/row height is set to EXACTLY .5 inches. I am not sure what you will see when you process it with ASPOSE, but when we send a document that loads text from a datasource the rows are expanded to accommodate all text, rather than truncating it at .5 inches.
If necessary, you can re-create this simply by following these steps:
1. Create a document with a table where row height is set exactly to .5 inches.
2. Create a datasource file with 1 field for each cell in the table. Put more text in the field than will fit in .5 inches.
3. Set up the Word document to usethat datasource and populate the table cells with the field references.
4. Send to ASPOSE.PDF -- you should see the rows expand rather than keep at the .5 inch height specified.
Thanks,
Bill
|
|
-
04-01-2009, 10:33 AM |
-
codewarior
-
-
-
Joined on 05-05-2008
-
-
Posts 7,235
-
-
-
-
-
|
Re: Table rows expand even when set to 'exactly' a specified height.
Hi,
I’ve tested the scenario and I am able to notice the same problem. We are looking into the details of this problem, and will keep you updated with the status of correction. Your patience is highly appreciated in this regard.
Nayyer Shahbaz Support Developer, Aspose Sialkot Team About Us Contact UsKeep in touch! We're on Twitter and Facebook
|
|
-
04-01-2009, 2:01 PM |
-
wrschenck
-
-
-
Joined on 08-27-2008
-
-
Posts 39
-
-
-
-
-
|
Re: Table rows expand even when set to 'exactly' a specified height.
Thanks, Nayyer. This is an issue that has been raised by several of our clients, so we appreciate your attention to it.
Bill
|
|
-
04-02-2009, 5:48 AM |
|
|
Re: Table rows expand even when set to 'exactly' a specified height.
Hi Bill, Thanks for your inquiry. I am a developer of aspose pdf team who is in charge of this issue. I am afraid it is a known issue that 'exact' row height is not supported yet. We are working on it and plan to support this feature in our next release. It needs aspose words team's cooperation and it is a time expensive job. We will implement it in about two months. Sorry for inconvenience. Best regards.
Hans Zhang Product Developer Aspose Changsha Team About UsContact Us
|
|
-
04-02-2009, 7:00 AM |
-
wrschenck
-
-
-
Joined on 08-27-2008
-
-
Posts 39
-
-
-
-
-
|
Re: Table rows expand even when set to 'exactly' a specified height.
Thanks for the information. We look forward to the next release.
Regards,
Bill
|
|
-
07-03-2009, 10:09 AM |
-
Alex.Li
-
-
-
Joined on 06-01-2007
-
chang sha
-
Posts 175
-
-
-
-
-
|
Re: Table rows expand even when set to 'exactly' a specified height.
Hi,
Sorry for the delay, the new release will take more time to publish. Please wait for some few days.
Thanks for your patience.
Alex Li Product Developer Aspose Changsha Team About Us Contact Us
|
|
Page 1 of 3 (34 items)
1
|
|