Forum Moderators: open
I have successfully conquered the label printing in ASP from the web.
I'm going to ask one of the mods to move your post to the ASP forum where we'll generate a better discussion.
Rather than post the lengthy code that I used to do it, I'l just share somepointers.
For the standard 3 X 10 address label page, I took measurements of the first row of labels fro the top and the left side. And took the distance from the top of the first label to the top of the next row of labels.
I used absolute positioning CSS to place each label, increasing the mm positioning by "X" to get it to line up correctly.
The problem was the page breaks.
I counted 10 rows, then reset my counter. If my counter was back to 10, then instead of the regular lineHeight + X for the next label I used lineHeight + X + pgBrk. pgBrk was the hardest to deal with. I ultimately went with a dynamic situation for that as well - letting each user detemine what their page break number should be.
Haven't had one complaint since I implemented that new system.......Yippee!
I went so far as to list it on one of the pay-for-script sites and got some response.
The big problem with ActiveX is that it is very intrusive on the client machine. The user gets a warning saying that they need to grant permission to download and install this software. You might have to get a certificate for it ($$) and many users have ActiveX controls disabled. These can be malicious, so people are wary of them.
On this particular application I didn't using printing style sheets, because the format is for the printer to begin with.
I do use absolute positioning CSS to position each label on the screen.