ComponantOne Studio 2011 VSPrinter 8.0 VSPrinter.Text property not working in .Net win form

Originally Posted 18 April 2012, 7:38 pm EST

  • Originally Posted 18 April 2012, 7:38 pm EST

    Windows 7
    Visual studio 2010 (.NET)
    ComponantOne 2011 VSPrinter 8.0

    I am trying to use VSPrinter .Text property of VSPrinter but it is not working ? IS there anyone who could help me out ?

    I am migrating vb6 (VSPrinter 6.0) application to .net (VSPrinter 8.0) . There is lot of code which is using VSPrinter .Text = “AAAA”

    If I use .Paragraph it is working. but may I know why it is not working when I use VSPrinter .Text nothing is printing.

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

    With AxVSPrinter1

    .Text = “Text”
    ‘.Paragraph = “Paragraph”
    End With

    End Sub
  • Reply


    I was able to replicate the same on my end, I 'd be escalating this to QA/DEV for further research/review

    Would let you know on getting an update

  • Marked as Answer



    The ActiveX wrapper adds ctl to a few properties, such as Text, so use CtlText instead. For example, this will work:

    With AxVSPrinter1
    .CtlText = "Text"
    End With
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels