Go Back   TX Text Control Community > TX Text Control Discussion and Support Forums > TX Text Control .NET

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.

Reply
 
Thread Tools Display Modes
  #1  
Old May 14, 2008
mgladding mgladding is offline
Registered User
 
Join Date: Dec 2007
Posts: 31
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?
Reply With Quote
  #2  
Old May 16, 2008
Gunnar Giffey's Avatar
Gunnar Giffey Gunnar Giffey is offline
TX Support Engineer
TX Text Control
 
Join Date: Sep 2004
Location: Bremen, Germany
Posts: 4,083
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]
Reply With Quote
  #3  
Old May 19, 2008
mgladding mgladding is offline
Registered User
 
Join Date: Dec 2007
Posts: 31
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?
Reply With Quote
  #4  
Old May 20, 2008
Gunnar Giffey's Avatar
Gunnar Giffey Gunnar Giffey is offline
TX Support Engineer
TX Text Control
 
Join Date: Sep 2004
Location: Bremen, Germany
Posts: 4,083
Lightbulb Re: Page Size vs Document Size

Quote:
Originally Posted by mgladding View Post
What do I need to do to my project to change it from 13 to 14 instead?
Updating your Project from a prior TX Text Control Version

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:
  1. Load your Visual Studio .NET project.
  2. Open the Add Reference... dialog box in the Project... menu.
  3. Delete the reference to the current TX Text Control version.
  4. Add a reference to the new version and close the dialog box.
  5. Open the licenses.licx file of your project and change the version number of the referenced TX Text Control version to the version number of the newer TX Text Control version.
  6. Close the Visual Studio .NET development environment.
  7. Reopen the Visual Studio .NET development environment.
  8. Rebuild your project using the Rebuild Solution menu item.
This text can also be found in the manual and here
__________________
Regards,
Gunnar Giffey, TX Text Control
[Forum Administrator]
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


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


All times are GMT +1. The time now is 20:35:27.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© 1991 - 2010 The Imaging Source Europe GmbH