Hi everyone! I am completely lost so I figured I would try to come here for some help. Basically, I've created this c# WPF program and it's basically complete, but it just needs to be able to print one of the controls (a grid). I've looked basically everywhere and I can't figure out for the life of me how to do it besides:
This will print off, but I can't figure out how to switch it to landscape mode, or add any padding around it. It also doesn't give any option from which printer to print it from. I've also tried to somehow convert it to a PDF but I couldn't get that to work either. I'm a little bit new so I'm sorry if this isn't the most interesting thing in the world. Any help would be great! Thanks!
Bad way to do this:
PrintDialog printDialog = new PrintDialog(); Visual visual = grid; printDialog.PrintVisual(visual, "grid printing");