Link to home
Create AccountLog in
Avatar of ddipro
ddipro

asked on

Problem with Print and print preview

I have a problem with print and printpreview.
I an using this code to print but there is a problem
Bitmap memoryImage = new Bitmap(panel1.Width, panel1.Height);
                        panel1.DrawToBitmap(memoryImage, panel1.ClientRectangle);
                        printDocument1.Print();

 that it print one barcode on one page and another barcode on another page. As i want that it will utilize whole page means i know that on page page there should be 5 barcodes so how can i achive this....


And how can i show Print Preview
ASKER CERTIFIED SOLUTION
Avatar of idautomation
idautomation
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account