[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
blank page preview when trying to print an image
[Thread Prev] | [Thread Next]
- Subject: blank page preview when trying to print an image
- From: Charles Bukowski <charlesbukowski.italy@xxxxxxxxx>
- Date: Mon, 16 Sep 2024 16:54:54 +0200
- To: Gambas Mailing List <user@xxxxxxxxxxxxxxxxxxxxxx>
Hi, I am trying to print to a file, and maybe later to paper, a picture correctly displayed into a picturebox of a form. Printing should start after clicking a button on the same form. Unfortunately I get a blank page at runtime, without any warning at compilation time. This is the code I am using: Public Sub Button6_Click() stampante1 = New Printer As "stampante1" stampante1.Configure stampante1.Print End Public Sub stampante1_Draw() Paint.Begin(PictureBox1.Picture) Paint.DrawPicture(PictureBox1.Picture, 100, 400) End I have attached system configuration. Any idea about what's wrong? Thank you
Attachment:
gambas
Description: Binary data
Re: blank page preview when trying to print an image | Bruce Steers <bsteers4@xxxxxxxxx> |