|
|||||||
| TX Text Control .NET Please use this forum for TX Text Control .NET support only. If you need support for a different product, please use the appropriate forum. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Page Size vs Document Size
I've run into a problem with a project I'm working on. The main goal is to take an RTF/Database Merge engine built by someone else, run a document template through the Merge Engine and then dump the output into my TXTextControl.
It's working beautifully except for one thing. See when I run my template through the merge engine it checks each page size and puts in the \pghsxn and \pgwsxn values for that page completely ignoring the \paperh and \paperw for the whole document. These two components of the RTF Spec define the size (\paper is the size of the whole document, \pg*sx is for the page). So basically I'm getting this: pre-merged template is a Legal document with \paperh set to 20160 (legal length) post-merged document SHOULD be a Legal document because it has \pghsxn set to 20160 for the pages BUT the TextControl ignores that value and loads what it has for the default paper size (\paperh) in the merged document (15840 which is letter). Is there any way to tell the TextControl to look at the \pghsxn instead of the \paperh? Also shouldn't it pay attention to this value anyway as you may have a default for the document of letter, but then set a specific page to legal? |
|
#2
|
||||
|
||||
|
Re: Page Size vs Document Size
Did you try the RTF/Database Merge engine output with version 14 yet?
As per our development department, support for pgwsxn and pghsxn for page height and width for the current section starts with TX Text Control 14. All versions before 14 used paperw und paperh with default values of 12240 and 15840 twips as there was not support for sections.
__________________
Regards, Gunnar Giffey, TX Text Control [Forum Administrator] |
|
#3
|
|||
|
|||
|
Re: Page Size vs Document Size
I have not tried it with 14 yet. I have 14 installed on this machine as well as 13 but I had the program mostly working with 13 so didn't want to break things by switching to 14. But I've now had issues where when I finally get it to load as legal, when I go to print it cuts the page off at the bottom to make it fit letter?
What do I need to do to my project to change it from 13 to 14 instead? |
|
#4
|
||||
|
||||
|
Quote:
The easiest way to adapt your Visual Studio .NET project from a prior to a newer TX Text Control version is to deinstall your prior version before installing the newer TX Text Control version. In this case your project is automatically adapted through the Visual Studio .NET development enviroment. If you have installed more than one TX Text Control version perform the following steps:
__________________
Regards, Gunnar Giffey, TX Text Control [Forum Administrator] |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Reset page numbers for a merged document | DotNetUSA | TX Text Control .NET Server | 4 | July 19, 2007 16:18:39 |
| Save causing Page Size to shrink by 1 | Unregistered | TX Text Control .NET | 3 | January 24, 2005 17:18:47 |
| Setting Page size and mantaining it | sabrina_c | TX Text Control .NET | 3 | November 29, 2004 23:55:24 |
| Single Page Document | predator | TX Text Control ActiveX | 1 | August 28, 2003 12:24:37 |
| Extra page added to document | Unregistered | TX Text Control ActiveX | 1 | December 5, 2002 15:12:47 |