Setwidths

View: New views
2 Messages — Rating Filter:   Alert me  

Setwidths

by jkhill74 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I've been using itextsharp with Visual Basic and getting good results but I've been stumped on setting column widths.  Most examples seem to use some form of C and I cannot come up with a VB equivalent that works?

Can anyone suggest a VB version of the following code:

        float[] columnWidths = { 8, 13}; // percentage
        tbl.SetWidths(columnWidths);

Re: Setwidths

by jkhill74 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


jkhill74 wrote:
I've been using itextsharp with Visual Basic and getting good results but I've been stumped on setting column widths.  Most examples seem to use some form of C and I cannot come up with a VB equivalent that works?

Can anyone suggest a VB version of the following code:

        float[] columnWidths = { 8, 13}; // percentage
        tbl.SetWidths(columnWidths);


I found what I was looking for:

        Dim widths() As Integer = {10, 80}

        tbl.SetWidths(widths)