Text Viewer SDK ActiveX

Text Viewer SDK ActiveX

Platform : Windows 10, Windows 8, Vista, Windows 7, XP

Let your application support display text file, PDF with text mode, XML file and document navigation with VB.Net ,VB6, C#, C++, Delphi, Vfp, MS Access.

Popular Solution Go   Back

VB.NET - How to display Multi-Page of Text File

Step 1: To install the Text Viewer SDK, begin by launching the setup file (http://www.viscomsoft.com/demo/textviewersetup.exe). Select the desired installation folder for the Text Viewer SDK and continue with the installation on your development computer.

Step 2: Launch Visual Studio 2010 or another version of Visual Studio. Select Visual Basic, Select Windows Form Application.




Step 3: In Toolbox, Right Click mouse and Select Choose Items...  , Select Text Viewer ActiveX in COM Components Tab.


Step 4: Now you will see the Text Viewer Control on Toolbox,  Drag the Text Viewer Control from Toolbox to form and add button on form.







Step 5: Add following code in Button click event. It will load the text file or PDF file to viewer.

Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
 AxTextReaderAx1.OpenFile("c:\temp\yourfile.txt")

End Sub

Step 6: Select Project - WindowsApplication1 Properties... , select Compile Tab, select x86 on Target CPU, now run the sample, you will see it display the text file, you may add more code to add the features or click right mouse button select another features