How do you center a table that does not span the whole width of the document? In Word you can select the whole table and press the centre button but in TXTextControl this just centres all the text in the table.
↧
[OPEN] Centering Tables
↧
TX Text Control .NET licensing explained
This article should help you, if you get the following error message in Visual Studio: The following control could not be licensed: TXTextControl.TextControl. This means that .NET is not able to find an appropriate license to validate the control. Generally, the license will be automatically included into the application and typically, you...
More...
More...
↧
↧
[OPEN] Can I move TextFrame in ServerTextControl
Hi:
I had a predefined TextFrame placed in template at page 1.
Y need dinamically move this into page 2.
I had a predefined TextFrame placed in template at page 1.
Y need dinamically move this into page 2.
↧
Reporting: Sorting merge block rows by column name
The concept of Text Control Reporting is to accept pre-shaped data. That means that Text Control's MailMerge component is merging the data rows 'as-is' and data shaping, sorting or queries are done in the application business layer. Sometimes, it is required to define the order of data rows in the template. This sample shows how to realize this...
More...
More...
↧
Inserting watermark images to all pages dynamically
This sample project shows how to create and insert a watermark image on all pages dynamically. Image objects have the Name property to store additional string information with an image. This property is used to tag the inserted watermark images in order to find them in the ImageCollection. In a first step, all watermark images are removed. In...
More...
More...
↧
↧
[OPEN] Error reading to byte[]
Hi, I'm trying to read the content of the editor into a byte[] but it always gives this error:
The collection has been marked as complete with regards to additions.
I've tried the file in the loadingsaving example and there the file works as expected.
The file is a docx.
this is the piece of code i'm using:
This is the complete error:
System.InvalidOperationException was unhandled by user code
HResult=-2146233079
Message=The collection has been marked as complete with regards to additions.
Source=System
StackTrace:
at System.Collections.Concurrent.BlockingCollection`1 .TryAddWithNoTimeValidation(T item, Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Collections.Concurrent.BlockingCollection`1 .Add(T item)
at TXTextControl.Web.WebSocketHandler.ᜀ(StreamType )
at TXTextControl.Web.TextControl.SaveText(Byte[]& binaryData, BinaryStreamType binaryStreamType)
at PharmaEditor.PharmaEditor.Docx_Click(Object sender, EventArgs e) in c:\Dev\Net\C#\PharmaEditor\PharmaEditor\PharmaEdit or\PharmaEditor.aspx.cs:line 144
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEven t(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
InnerException:
Im using TxText Control 22.0 trial version
Thank you
The collection has been marked as complete with regards to additions.
I've tried the file in the loadingsaving example and there the file works as expected.
The file is a docx.
this is the piece of code i'm using:
Code:
byte[] docx;
TextControl1.SaveText(out docx, TXTextControl.Web.BinaryStreamType.WordprocessingML);
System.InvalidOperationException was unhandled by user code
HResult=-2146233079
Message=The collection has been marked as complete with regards to additions.
Source=System
StackTrace:
at System.Collections.Concurrent.BlockingCollection`1 .TryAddWithNoTimeValidation(T item, Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Collections.Concurrent.BlockingCollection`1 .Add(T item)
at TXTextControl.Web.WebSocketHandler.ᜀ(StreamType )
at TXTextControl.Web.TextControl.SaveText(Byte[]& binaryData, BinaryStreamType binaryStreamType)
at PharmaEditor.PharmaEditor.Docx_Click(Object sender, EventArgs e) in c:\Dev\Net\C#\PharmaEditor\PharmaEditor\PharmaEdit or\PharmaEditor.aspx.cs:line 144
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEven t(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
InnerException:
Im using TxText Control 22.0 trial version
Thank you
↧
[OPEN] Application field nested in text field
Hi all,
I have a short question.
Is it possible to nest a application field into a text field?
I know a application field is a derived class from text field and as far as I know you cannot nest a field in another but maybe there is a workaround for this?
Thanks for your help!
I have a short question.
Is it possible to nest a application field into a text field?
I know a application field is a derived class from text field and as far as I know you cannot nest a field in another but maybe there is a workaround for this?
Thanks for your help!
↧
[OPEN] Adding TxText to web form is not adding license file
Hi,
I am adding a web form to an ASP.NET MVC project. I then add the TextControl but the license file does not get added. Is this a known problem that anyone knows how to overcome?
I am adding a web form to an ASP.NET MVC project. I then add the TextControl but the license file does not get added. Is this a known problem that anyone knows how to overcome?
↧
Windows Forms: Printing multiple pages per sheet
This sample project implements the class MultipagePrintDocument that inherits from System.Drawing.Printing.PrintDocument to print multiple pages of a document per sheet. The constructor of MultipagePrintDocument accepts an instance of TXTextControl.TextControl that is used to create the page thumbnails in the printing process, the number of...
More...
More...
↧
↧
[OPEN] Get image in selection range
Hello,
is it possible to get an image inside of the current selection?
e.g.
My document contains some default headlines but not every headline of them is followed by content (text, image, table...).
So I need to check if there is any content after the current selected headline.
For text I just check the following 5 lines line by line.
But if there is not any text and for example only an image I can't select it with the mentioned method above.
So if there is more than one image in the selected range the function "GetItem()" returns null? Or how does it work?
Any help is really appreciated, thank you!
is it possible to get an image inside of the current selection?
e.g.
Code:
_textControl.Select(Page.Start, Page.Length);
if (_textControl.Images.GetItem() != null)
{
...
}
My document contains some default headlines but not every headline of them is followed by content (text, image, table...).
So I need to check if there is any content after the current selected headline.
For text I just check the following 5 lines line by line.
But if there is not any text and for example only an image I can't select it with the mentioned method above.
So if there is more than one image in the selected range the function "GetItem()" returns null? Or how does it work?
Any help is really appreciated, thank you!
↧
Service Pack 2 for TX Text Control X12 released
We are very happy to announce the immediate availability of new Service Packs for the following Text Control products: TX Text Control X12. Service Pack 2 for TX Text Control .NET Server for ASP.NET X12. Service Pack 2 for TX Text Control .NET for Windows Forms X12. Service Pack 2 for TX Text Control .NET for WPF X12. Service Pack 2 for TX Text...
More...
More...
↧
[OPEN] Error 01-2701 while trying load an RTF string
Hi,
I get the below invalid format(?) exception while trying to load the attached RTF string into a Selection:
"The operation could not be performed. An unexpected error has occurred. (01-2701)."
Tx Version: Assembly TXTextControl.dll, v2.0.50727
Here's the code:
The value of rtfText is attached in the file.
rtfText.Length = 69922
After playing around with the settings,
1. When selection.Start <= 1300, selection.Load() executes without error.
2. When selection.Start = 1638, but rtfText = rtfText.SubString(0, 22608)[or lesser] - selection.Load() executes without any error.
I have tried looking at the characters in these positions (22609 and 1301) of rtfText - they are just regular alphabets.
Can you tell me what the issue is? I am not sure why adjusting Selection.Start is affecting the Load functionality.
Attached is the RTF input string and the original text that is pasted into TxTextControl.
Thank you!
Pradeepa.
I get the below invalid format(?) exception while trying to load the attached RTF string into a Selection:
"The operation could not be performed. An unexpected error has occurred. (01-2701)."
Tx Version: Assembly TXTextControl.dll, v2.0.50727
Here's the code:
Code:
Selection selection = new Selection(position, len); // position = 1638; len = 0
ActiveTextPart.Selection = selection; //ActiveTextPart is of type IFormattedText
// paste in the rtf
selection.Load( rtfText, StringStreamType.RichTextFormat );
rtfText.Length = 69922
After playing around with the settings,
1. When selection.Start <= 1300, selection.Load() executes without error.
2. When selection.Start = 1638, but rtfText = rtfText.SubString(0, 22608)[or lesser] - selection.Load() executes without any error.
I have tried looking at the characters in these positions (22609 and 1301) of rtfText - they are just regular alphabets.
Can you tell me what the issue is? I am not sure why adjusting Selection.Start is affecting the Load functionality.
Attached is the RTF input string and the original text that is pasted into TxTextControl.
Thank you!
Pradeepa.
↧
[OPEN] TXTextControl Version 22.0 and TXSpell 6.0 not underlining misspelled words
Hello,
I'm evaluating the TXSpell Control for use with the TXTextControl express edition.
I started with one of you sample projects and added a TXTextControl to the main form. Then, I just assigned the txSpellChecker1 to the added TXTextControl and checked the flag "IsSpellCheckingEnabled".
If I start writing on the TXTextControl, the misspelled text is never underlined. But if I copy and paste the text from the first RichTextBox of the example to the TXTextControl, the control correctly underlines the misspelled words and continues to correctly underline if I change manually the text.
What I'm I doing wrong?
I'm using TXTextControl version 22.0 and TXSpell 6.0.
I have attached the sample project with my changes.
Thanks,
Jorge
I'm evaluating the TXSpell Control for use with the TXTextControl express edition.
I started with one of you sample projects and added a TXTextControl to the main form. Then, I just assigned the txSpellChecker1 to the added TXTextControl and checked the flag "IsSpellCheckingEnabled".
If I start writing on the TXTextControl, the misspelled text is never underlined. But if I copy and paste the text from the first RichTextBox of the example to the TXTextControl, the control correctly underlines the misspelled words and continues to correctly underline if I change manually the text.
What I'm I doing wrong?
I'm using TXTextControl version 22.0 and TXSpell 6.0.
I have attached the sample project with my changes.
Thanks,
Jorge
↧
↧
Exception Unknown Format
hi everybody!
i have a Word 97-2003 Template (.dot file) which i wanna use in livedocx for php (ZendFramework-1.12.13). i converted (Save As in Word) the file into a Strict Open XML-Document (.docx file) in Word 2013 and get the following error:
the i tried from the .dot file into simple .docx (also with Save As) in Word 2013 with no tick at Compatibility Mode, this works, at least i get no error message, but the output in PDF is atrocious, there is no layout anymore, sometimes the mergefield repeats 3 times, some (most of the) mergefields with values don't appear... and horizontal lines with colours get thicker and....waah... the output is useless
...same when i tick the checkbox with the Compatibility Mode
then i converted (again with Save As) with Word 2003 the .dot file into a .doc file:
next trick, i opend the .dot file with Word 2003, Strg A, Strg C, Strg N, Strg V and saved it as .doc file -> same error
is there a simple solution to solve this problem? or do i have to rewrite the whole document in word 2013 and save it new as docx file?
thanks in advance :-)
i have a Word 97-2003 Template (.dot file) which i wanna use in livedocx for php (ZendFramework-1.12.13). i converted (Save As in Word) the file into a Strict Open XML-Document (.docx file) in Word 2013 and get the following error:
Code:
Fatal error: Uncaught exception 'SoapFault' with message 'Server was unable to process request. ---> Text filter error: Unknown format. (01-1D01)'
...same when i tick the checkbox with the Compatibility Mode
then i converted (again with Save As) with Word 2003 the .dot file into a .doc file:
Code:
Fatal error: Uncaught exception 'SoapFault' with message 'Server was unable to process request. ---> Unknown format. (01-241F)'
is there a simple solution to solve this problem? or do i have to rewrite the whole document in word 2013 and save it new as docx file?
thanks in advance :-)
↧
Merging documents with RESTful Web API's
ASP.NET Web API is a framework that makes it easy to build HTTP services that reach a broad range of clients, including browsers and mobile devices. ASP.NET Web API is an ideal platform for building RESTful applications on the .NET Framework. Source: Microsoft - Learn About ASP.NET Web API (http://www.asp.net/web-api). Service based...
More...
More...
↧
Windows Forms: Printing multiple pages per sheet
This sample project implements the class MultipagePrintDocument that inherits from System.Drawing.Printing.PrintDocument to print multiple pages of a document per sheet. The constructor of MultipagePrintDocument accepts an instance of TXTextControl.TextControl that is used to create the page thumbnails in the printing process, the number of...
More...
More...
↧
Using MailMerge with JSON data
In the last article, we explained how to create an ASP.NET Web API to merge templates with JSON data in the payload body of an HTTP request. The focus of this article was on the Web API and RESTful services itself. Extracted from this project, this sample shows how to merge a template with a JSON string directly. The JSON data string has the...
More...
More...
↧
↧
Survey: Which .NET Framework versions are you using?
We are currently planning the next versions of our products and wonder which .NET Framework versions should be supported. Do you still need .NET Framework 2.0 support? Help us and take the very short survey and have an influence on the future development of Text Control products. Thank you very much for taking the time - we will publish the...
More...
More...
↧
[OPEN] Showing Differences
Good day to all...
Is there a built in feature (similar to TFS Version Compare), which will take a content of two different controls and show the differences?
For example, the control on the left will then show what has been removed, and the one on the right will show what has been added?
Thanks!
Is there a built in feature (similar to TFS Version Compare), which will take a content of two different controls and show the differences?
For example, the control on the left will then show what has been removed, and the one on the right will show what has been added?
Thanks!
↧
[OPEN] System.DllNotFoundException: The Text Control kernel DLL file could not be found.
Hi,
I have TXTextControl version 11 installed on my machine (windows 7). When I try to build my application I get the following error:
C:\Program Files (x86)\Microsoft Visual Studio 8\SDK\v2.0\bin\LC.exe /target:caliban.dll /complist:licenses.licx /outdir:obj\Release\ /i:"C:\Program Files (x86)\The Imaging Source Europe GmbH\TX Text Control 11.0.NET\BIN\TXTextControl.dll"
[exec] licenses.licx(3): error LC0004: Exception occurred creating type 'TXTextControl.TextControl, TXTextControl, Version=11.0.300.500, Culture=neutral, PublicKeyToken=6b83fe9a75cfb638' System.DllNotFoundException: The Text Control kernel DLL file could not be found.
Any help would be appreciated.
Thanks
I have TXTextControl version 11 installed on my machine (windows 7). When I try to build my application I get the following error:
C:\Program Files (x86)\Microsoft Visual Studio 8\SDK\v2.0\bin\LC.exe /target:caliban.dll /complist:licenses.licx /outdir:obj\Release\ /i:"C:\Program Files (x86)\The Imaging Source Europe GmbH\TX Text Control 11.0.NET\BIN\TXTextControl.dll"
[exec] licenses.licx(3): error LC0004: Exception occurred creating type 'TXTextControl.TextControl, TXTextControl, Version=11.0.300.500, Culture=neutral, PublicKeyToken=6b83fe9a75cfb638' System.DllNotFoundException: The Text Control kernel DLL file could not be found.
Any help would be appreciated.
Thanks
↧