Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27418

VS 2010 Calculate no. of columns and rows that can be drawn on an PrintDocument

$
0
0
Hello!

I need to print barcode labels, and for the same i need to calculate the max no. of columns and rows that would fit within the MarginBounds of the PrintDocument.

Yes i could simply divide the PageWidth with the width of the Label, but after every column(and row) i need to give an margin of 0.15 inches (my PageUnits are Inches).

How should i include this margin in the calculation to get the max no. of rows and columns that would fit in the page.

Thanks
Regards
Aashish Agarwal

Viewing all articles
Browse latest Browse all 27418

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>