When I try to print to pdf or straight to printer the program crashes. : object reference not set to an instance of an object