none
Print problem after alignment center RRS feed

  • Question

  • BMP Print ?

    1- No problem when  if i using "Left" "RTBbox.SelectionAlignment = HorizontalAlignment.left"     ' Print BMP

    2- Blank Print problem when if i using "Center" "RTBbox.SelectionAlignment = HorizontalAlignment.Center"   'Blank Print

    3- Blank Print problem when if i using "Right" RTBbox.SelectionAlignment = HorizontalAlignment.Right"   'Blank Print

    I have applied this

    *********************************************************************************************

    Imports System.Drawing.Text
    Imports System.IO
    Imports iTextSharp.text
    Imports iTextSharp.text.pdf
    Imports System
    Imports System.Threading
    Imports System.Runtime.InteropServices
    Public Class Form1
        Private contentRectangle As Drawing.Rectangle
        Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
            RTBbox.SelectionAlignment = HorizontalAlignment.Center
            RTBbox.ViewAndPrint()
            System.Diagnostics.Process.Start(AppDomain.CurrentDomain.BaseDirectory + "CompanyName.pdf", "Company")
            Me.RTBbox.BitmapImageBMP(RTBbox, Me.contentRectangle, "C:\Users\MyComputer\Desktop\CompanyName.Bmp")
        End Sub

        Private Sub RTBbox_ContentsResized(sender As Object, e As ContentsResizedEventArgs) Handles RTBbox.ContentsResized
            Me.contentRectangle = e.NewRectangle
        End Sub
    End Class




    Saturday, September 28, 2019 2:44 PM

Answers