Search found 110 matches

by rsb
Tue Dec 05, 2017 10:27 pm
Forum: C++ Development
Topic: wxPostScriptPrinter
Replies: 0
Views: 27

wxPostScriptPrinter

Hello, I'm trying to use the wxPostScriptPrinter class to create a postscript file. We're using the wxPrinter and the wxPdfPrinter classes to print and they both work well. We're using the wxPostScriptPrinter class in the same framework as the other two. The wxPostScriptPrinter class does create a p...
by rsb
Thu Nov 02, 2017 11:36 pm
Forum: C++ Development
Topic: Transparent fill pattern using a Stipple brush on a Printer
Replies: 2
Views: 56

Re: Transparent fill pattern using a Stipple brush on a Printer

Hello,

wxPdfDocument: 0.9.5

Printers:
HP LaserJet 5SI
Bullzip PDF printer
Adobe PDF

Thanks.
by rsb
Thu Nov 02, 2017 5:22 pm
Forum: C++ Development
Topic: Transparent fill pattern using a Stipple brush on a Printer
Replies: 2
Views: 56

Transparent fill pattern using a Stipple brush on a Printer

We're using a stipple brush defined from a bitmap with a mask to display a fill pattern. The fill pattern displays transparently on a panel or on a printer using wxPdfDocument (wxPdfDC), but using wxPrinter (wxPrinterDC) it's doesn't. It has a solid background color. Is this a shortcoming of the wxP...
by rsb
Tue Oct 31, 2017 6:09 pm
Forum: Platform Related Issues
Topic: Gtk Warning on Linux when setting a bit mask
Replies: 2
Views: 94

Gtk Warning on Linux when setting a bit mask

When reading a .png file into our application to use as a stipple brush, we get the following warning on Linux. Same code on Windows but no warning. Gtk - WARNING ** : Attempt to draw a drawable with depth 24 to a drawable with depth 1 Any idea what could cause this? Also, the stipple pattern looks ...
by rsb
Fri Oct 27, 2017 2:20 pm
Forum: C++ Development
Topic: Setting Printer Options
Replies: 4
Views: 113

Re: Setting Printer Options

We're past this problem now. We have a similar application that used GDI to print and it didn't have the same problem. It took into account the unprintable area of the printer. Once we included this in our existing code the problem went away. Here's the code we used to determine the unprintable area...
by rsb
Thu Oct 26, 2017 4:34 pm
Forum: C++ Development
Topic: Setting Printer Options
Replies: 4
Views: 113

Re: Setting Printer Options

It's not really crashing. The printer hangs and takes a long time to finish. Sometimes more than 30 minutes.

The sample does print correctly.

I have a feeling it may have something to do with the page margins. It only happens when the margins are
set to 0.

Thanks.
by rsb
Thu Oct 26, 2017 1:21 pm
Forum: C++ Development
Topic: Setting Printer Options
Replies: 4
Views: 113

Setting Printer Options

I'm trying to print to an HP printer and it's crashing. We found that the graphics mode for the printer is set to HP-GL/2. There's two options in the HP printer options dialog for graphics mode. HP-GL/2 and Raster. When we use raster, everything works fine but the default is HP-GL/2. I didn't see an...
by rsb
Wed Oct 18, 2017 2:34 pm
Forum: C++ Development
Topic: wxBrush SetStipple different between panel and printer
Replies: 5
Views: 154

Re: wxBrush SetStipple different between panel and printer

Thanks for your quick response. This doesn't seem to work. The distance between the diagonal lines doesn't change. It looks like the Scale method just resizes the image by length and width without changing the pattern. I was hoping it would expand the pattern to fit the new size. I tried some differ...
by rsb
Tue Oct 17, 2017 8:08 pm
Forum: C++ Development
Topic: wxBrush SetStipple different between panel and printer
Replies: 5
Views: 154

Re: wxBrush SetStipple different between panel and printer

Do you know if there is a way to convert (enlarge) an existing bitmap based on a different resolution?
I tried using the CreateScaled method but it didn't work.

Thanks.
by rsb
Tue Oct 17, 2017 2:50 pm
Forum: C++ Development
Topic: wxBrush SetStipple different between panel and printer
Replies: 5
Views: 154

Re: wxBrush SetStipple different between panel and printer

Note that the Printer display is PDF.
by rsb
Tue Oct 17, 2017 2:48 pm
Forum: C++ Development
Topic: wxBrush SetStipple different between panel and printer
Replies: 5
Views: 154

wxBrush SetStipple different between panel and printer

Hello, We're using the wxBrush SetStipple method to display a filled polygon. The area inside the polygon displays one way on a panel and another way using the wxPrinter class. Am I doing something wrong or could this be a problem with the wxPrinter framework? Here's a snippet of code: -------------...
by rsb
Tue Sep 05, 2017 9:35 pm
Forum: C++ Development
Topic: Autoscaling in wxWidgets
Replies: 1
Views: 87

Autoscaling in wxWidgets

Hello, Does wxWidgets provide any support for auto scaling on Windows? We have customers who scale their text up using the control panel. (Appearance and Personalization\Display). We develop our application using the default of 96 DPI. Thanks, RSB wxWidgets 3.1.0 Windows 7 Professional Visual Studio...
by rsb
Fri Aug 25, 2017 6:09 pm
Forum: Platform Related Issues
Topic: wxPrinter dialog Generates Assertions on Linux
Replies: 9
Views: 239

Re: wxPrinter dialog Generates Assertions on Linux

Hi,

OK, that makes sense now.

Thanks very much!
by rsb
Fri Aug 25, 2017 5:15 pm
Forum: Platform Related Issues
Topic: wxPrinter dialog Generates Assertions on Linux
Replies: 9
Views: 239

Re: wxPrinter dialog Generates Assertions on Linux

Hi, We have many printers. We just want to select the printer and the page setup first. In our dialog, we have a Printer setup button and a Page setup button. Users will select the printer from many listed in the print dialog and then the page setup, they will then select other application specific ...

Go to advanced search