Hello Forum,
Following the success in windows form printing creation in my project, I have closely followed your code to create print preview before printing in the project. There was no error at design time but when I run the project and click the preview button, the attached error message displays and so made my work unsuccessful.
Please I will appreciate is anyone can help me fix my problem.
Thanks.

Khoday AkileshPosted Oct 18, 2023, 9:36 PM
I feel that, this.streamToPrint has null value, du to that you are getting error, If you could try to pass the image by opening the file and test it.