Quantcast
Channel: TX Text Control Community
Viewing all 1022 articles
Browse latest View live

TextControl.Web: Determine when a document has been completely loaded

$
0
0
Web.TextControl provides an event that can be used to determine when the ribbon bar has been loaded completely in order to add and remove ribbon items such as groups, tabs and buttons. But when implementing your own file management, it is also very helpful to know when a document has been loaded completely in order to enable or disable specific...

More...

Reporting: Merging MS Word documents with DocVariables

$
0
0
TX Text Control supports all MS Word fields including the typical merge fields, content control fields, legacy form fields or special fields such as DOCVARIABLE. All of those fields can be found in the ApplicationField collection. For the most typical fields, FieldAdapters are available to create and handle MS Word compatible fields directly....

More...

[OPEN] Other apps come forward

$
0
0
We are seeing some strange behavior with the TX Text server control. If we use the control while the main window of our app is disabled, the previous app that had focus comes in front of our app.

I have attached a sample app that is set up similar to our application. It is an MFC app that calls a .NET function to do some document work. When you run it, you will see a “TEST” menu item with several test items below it.
Test1 = no document work is done so no problem with another app coming forward
Test2 = document work is done in a separate thread (this is how our app works) – other app comes forward
Test3 = document work is done in the main thread but other app still comes forward

The fix appears to be simple in the sample app: re-enable the main window just prior to disposing the control. However, this could be a major change in the real app for reasons I will not get into here.

Do you know why this focus problem is happening?

Is there some way to keep the server control from causing this?

Thanks,
Mike

[OPEN] Separate ActiveX controls using two different versions of TxText

$
0
0
Does anyone know if it is possible to include two ActiveX controls in an application where they use different versions of TxText? What I mean is, we have a VB6 application that needs to include a user control from A.ocx and another one from B.ocx. A.ocx uses TxText19 and B.ocx uses TxText14. We need to copy the contents from the TxText control hosted in A.ocx to the one hosted in B.ocx and we've tried using the SaveToMemory and LoadFromMemory using the Word format (in case the TxText internal one was different)
e.g.
Dim abContents() as Byte
abContents = A.TxTextControl.SaveToMemory(abContents, 9, False)
B.TxTextControl.LoadFromMemory(abContents, 9, False)

but we get txtext errors when we load the contents from memory: Insufficient memory (1-1004)

I can't see anything obviously wrong and wondered if there was a conflict between the versions.

Thanks for any help.

Reporting: Styling the DocumentViewer for ASP.NET

$
0
0
TX Text Control .NET Server for ASP.NET comes with the HTML5 based editor Web.TextControl and the cross-browser, cross-platform DocumentViewer component to view reports and documents. The DocumentViewer can be used when pure document viewing is required in web-based applications. Typically, templates are merged server-side with data using the...

More...

Text Control is moving to GitHub

$
0
0
We're moving to GitHub! Step-by-step, we are moving all sample projects, wrappers and additional resources such as the Text Control UI Icon Package to GitHub. GitHub became the market leader in Git hosting over the last years. It simply makes sense to join the market leader: More repositories, more users, more forks, more revisions, more...

More...

Reporting: Styling the DocumentViewer for ASP.NET

$
0
0
TX Text Control .NET Server for ASP.NET comes with the HTML5 based editor Web.TextControl and the cross-browser, cross-platform DocumentViewer component to view reports and documents. The DocumentViewer can be used when pure document viewing is required in web-based applications. Typically, templates are merged server-side with data using the...

More...

[OPEN] X11: Format unknown (1-2426) error when loading htm file

$
0
0
Hello!

Can someone please help me find out why I cannot load a certain htm file? I can load other htm files, only the attached one makes problems.

BR, Matthias


First day at NDC Oslo 2015

$
0
0
The first day of NDC Oslo 2015 just ended and we could not be more thrilled by the positive feedback we received from attendees and users of TX Text Control. It was a successful first day and we were very busy demoing our latest reporting and word processing products. We met so many enthusiastic, smart and friendly developers and it was a lot...

More...

[OPEN] Need help saving rtf document.

$
0
0
Hi,

I'm using the following code to try and save a document as rich text.

Code:

Private Sub cmdSaveDoc_Click(sender As System.Object, e As System.EventArgs) Handles cmdSaveDoc.Click
        Dim MySaveSettings As New TXTextControl.SaveSettings

        txControl1.Save("c:\XXX.rtf", TXTextControl.StringStreamType.RichTextFormat, MySaveSettings)
        MsgBox(MySaveSettings.SavedFile)
    End Sub

It doesn't save and ".SavedFile" returns a blank. Can you tell me what I'm doing wrong?

I'm using VB.NET 2010 and Tx Text Control Express .NET 22.0.

Thank you,
Bret

MailMerge with the Entity Framework using Database First

$
0
0
This article shows how to use the Entity Framework - Microsoft's recommended data access technology for new applications. For demo purposes, this article describes how to create a simple Windows Forms application using TX Text Control .NET for Windows Forms and the MailMerge component. The MailMerge component is available in all .NET based TX...

More...

[OPEN] How do I center my image?

$
0
0
Hi,

I'm using the following code to insert an image and I can't seem to center it on my document even though I'm using "TXTextControl.HorizontalAlignment.Center" in the "add" line. Can you tell me what I'm doing wrong?

Code:

Dim iTwipsPerPixel = 1440 / txControl1.CreateGraphics().DpiX
Dim MaxWidth As Integer = 500

    Dim image As New TXTextControl.Image()
    image.FileName = PicFileFolder & CKPicPath
    image.HorizontalScaling = 100
    image.VerticalScaling = 100
    image.SaveMode = TXTextControl.ImageSaveMode.SaveAsData
    txControl1.Images.Add(image, TXTextControl.HorizontalAlignment.Right, -1, TXTextControl.ImageInsertionMode.MoveWithText)
    Dim ImageWidth As Integer = image.Size.Width / iTwipsPerPixel
    Dim ScaleValue As Double
    If ImageWidth >= MaxWidth Then
        ScaleValue = MaxWidth / ImageWidth * 100
        image.VerticalScaling = Convert.ToInt32(ScaleValue)
        image.HorizontalScaling = Convert.ToInt32(ScaleValue)
    End If

I'm using VB.NET 2010 and Tx Text Control Express .NET 22.0.

Thanks very much,
Bret Reece

[OPEN] Distributing application

$
0
0
Hi

I like trial version of the tool (TX Text Control ActiveX Version 22.0). I would like to incorporate it in my VB6 application. Before involving more in test I would like to resolve possible licensing issues.

Distributing your application page only dictates assembly instructions.

The purchase page talks about Developer licenses only.

Does it mean that my one license (as developer) is applicable to all clients o the VB6 application?
The clients does not need to buy license?

Thank you in advance
jan

[OPEN] TextControl crashes on dynamic creation on not selected tab

$
0
0
When creating a text control on a tab in a tab control and you do not set the selected flag on the tab item or you create multiple tabs at a time the application crashes. For opening a bunch of files, for example a file list for a specific project you need this function. For the planned application this is an essential action.

The attached example code shows this behaviour. If you click the button "Create multiple tabs" or if you click the button "Create non selected tab" the application crashes somewhere in text controls wpf.dll.
Attached Files

[OPEN] Table horizontal alignment

$
0
0
Hello,

is it possible to set the horizontal alignment for a table?

Thank you!

[OPEN] Control Doesn't Load on Workstation

$
0
0
I am finding that when I access our application from IE 11 on the localhost web server, everything functions perfectly. However, when I access the application from a different computer on the network, I get a continuous, non-ending “pre-load” with the circular graphic and the document never loads. The local web server is Windows Server 2012, IIS 8.5 and using Internet Explorer 11 to access the application. The other two computers are a Windows Server 2003 w/ IE 10 and the other is a Windows Server 2008 w/ IE 11. This same “loading” action occurs on both of those computers. Any ideas? The code is below.

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Session("validlogin") <> 1 Then
Response.Redirect("default.aspx")
End If
Dim ds As DataSet
ds = GetReportList(Request("id"))
Dim zfilepath As String
zfilepath = ds.Tables(0).Rows(0)("txtReportFilePath")
TextControl1.LoadTextAsync(Server.MapPath(zfilepat h), TXTextControl.Web.StreamType.MSWord)
End Sub

[OPEN] Error when setting reference to TXDocumentServer

$
0
0
Hi,

when I set the reference to the TXDocumentServer Assembly, I get the following Error:

Unbekannter Buildfehler, "Das binäre Format des angegebenen benutzerdefinierten Attributs ist ungültig."
In english -> Unknown build error, "Binary format of the specified custom attribute was invalid."

Does anybody know what may be the problem here?

[OPEN] Insert Image - An unexpected error has occurred. (01-0806)

$
0
0
I'm using TX Windows Forms 21.

This error occurs when I run this simple Unit Test twice:

Code:

[TestMethod]
public void Test() {
    var textControl = new TextControl();

    textControl.CreateControl();

    var image = new Image(@"F:\logo.png", 0);

    textControl.Images.Add(image, 0);
}

The first time it runs OK, but from the second time it always crash. If you try to debug the test the error doesn't happens.

I discovered that if you instantiate the TextControl in a 'using' statement the error never happens. Could you guys explain what's going on behind the scenes in the TextControl? Is there some static data being shared across the process and across the different TextControl instances?

[OPEN] Load Dictionary Dialog

$
0
0
Hello,

is there a built in dialog to load dictionaries like in your sample which is delivered with the setup of the current TX Text Control version?
I attached a screenshot of the dialog for clarification.

Thank you in advance!

[OPEN] Finding the active text part

$
0
0
How do I find the the active text part in the ServerTextControl?

The TextPartCollection has a GetItem function, but it seems to always return NULL. I assume that's because it's returning the part that has "focus" and nothing in the server control has focus.

I could try to keep track of which part was last activated. But that would mean I need to know how every TX Text function affects this.
Example: if the header is active and I load a new document, the TX Text Load function will make the main text part active.

Thanks,
Mike
Viewing all 1022 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>