0
Hi,
I have one doubt in export pdf in ASP.net c#.I do not know how to export textbox,label,gridview controls in pdf format with different alignment.i tried to bind all controls in pdf but i cannot arrange the controls in pdf format when am i using gridview. can you give code for that.
0
Hi,
Take a table and put the controls within that in two columns.
try this sample:
<table>
<tr>
<td colspan="3" align="right">
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td style="width: 184px;">
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</td>
<td rowspan="2" align="right">
<asp:Image ID="Image1" runat="server" Height="42px" Width="62px" />
</td>
<td style="width: 64px;">
</td>
</tr>
<tr>
<td style="width: 184px;">
<asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
</td>
<td style="width: 64px;">
</td>
</tr>
<tr>
<td style="width: 184px;">
<asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
</td>
<td style="width: 64px;">
</td>
</tr>
<tr>
<td style="width: 184px;">
<asp:TextBox ID="TextBox7" runat="server"></asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox8" runat="server"></asp:TextBox>
</td>
<td style="width: 64px;">
</td>
</tr>
<tr>
<td style="width: 184px;">
<asp:TextBox ID="TextBox9" runat="server"></asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox10" runat="server"></asp:TextBox>
</td>
<td style="width: 64px;">
</td>
</tr>
</table>
Any problem reply
