I now have a php script that generates a barcode label with all needed information in a given size. I have used point instead of mm for getting the right size.
I can print the barcode labels from Chrome, after choosing the right Paper Size and it works flawlessly.
Now I want to automate the printing (choosing the right printer and size) and from what I have read you can't do it from a browser. So I have decided to use C#.
I am able to load the php script in the webbrowser and view the image. Now how would I go on about printing the label.
This is how I show the print preview dialog once the webbrowser completes, ((WebBrowser)sender).ShowPrintPreviewDialog();. But I can't edit the print settings or anything with this method (my print preview dialog itself is really small). What are the ways that I can use to print the labels in the required size from php. COnverting the php output to image within php seems to lose alot of quality and I can't scan the the printed barcode.
`
