Dear All,
I have the following code to print QR Code dynamically:
TableRow rw = new TableRow();
RadBarcode barcode1 = new RadBarcode();
barcode1.Type = BarcodeType.QRCode;
barcode1.Attributes.Add("Width","50px");
barcode1.Attributes.Add("Height", "50px");
barcode1.ShowText = true;
barcode1.Text = "ABCDE";
TableCell cell = new TableCell();
cell.Controls.Add(barcode1);
cell.Attributes.Add("Width","150px");
cell.RowSpan = 8;
rw.Cells.Add(cell);
I have specify the width and height at 50px. however, the actual output always at 159px no matter what size i specify.
The following is the output:
<tr><td Width="120px" rowspan="8"><span id="ctl02" class="RadBarcode" Width="100px" Height="100px" style="display:inline-block;height:150px;width:300px;"><svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="159px" height="159px" viewBox="0 0 106 106" >
can any one tell me how to change the svg width and height attributes? or any other work around?
greatly appreciate for any helps.
regards,
Richard
I have the following code to print QR Code dynamically:
TableRow rw = new TableRow();
RadBarcode barcode1 = new RadBarcode();
barcode1.Type = BarcodeType.QRCode;
barcode1.Attributes.Add("Width","50px");
barcode1.Attributes.Add("Height", "50px");
barcode1.ShowText = true;
barcode1.Text = "ABCDE";
TableCell cell = new TableCell();
cell.Controls.Add(barcode1);
cell.Attributes.Add("Width","150px");
cell.RowSpan = 8;
rw.Cells.Add(cell);
I have specify the width and height at 50px. however, the actual output always at 159px no matter what size i specify.
The following is the output:
<tr><td Width="120px" rowspan="8"><span id="ctl02" class="RadBarcode" Width="100px" Height="100px" style="display:inline-block;height:150px;width:300px;"><svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="159px" height="159px" viewBox="0 0 106 106" >
can any one tell me how to change the svg width and height attributes? or any other work around?
greatly appreciate for any helps.
regards,
Richard