I updated the code to make it work with PureBasic versions older than 5.10, since they do not support autocasting.
 If PrintRequester()
 If StartPrinting("PureBasic Test")
 
 LoadFont(0, "Arial", 30)
 LoadFont(1, "Arial", 100)
 If StartDrawing(PrinterOutput())
 OutputHeight$ = "OutputHeight ...
					Search found 26 matches
- Thu Dec 29, 2022 4:10 pm
- Forum: Linux
- Topic: Printing does not work under Linux
- Replies: 13
- Views: 2417
- Thu Dec 29, 2022 2:11 pm
- Forum: Linux
- Topic: Printing does not work under Linux
- Replies: 13
- Views: 2417
Re: Printing does not work under Linux
This example is not entirely correct, the last MessageRequester says "Printing completed." when it actually isn't, printing is completed after StopPrinting() call, thus if you are like me and missed that MessageRequester becuase it wasn't focused and then checked the PDF output it will be empty ...
- Thu Dec 29, 2022 12:55 pm
- Forum: Linux
- Topic: Printing does not work under Linux
- Replies: 13
- Views: 2417
Re: Printing does not work under Linux
Thanks for all your feedback. PureBasic forums indeed seem to have many helpful users :) 
Since it seems to be a PureBasic bug, I will do some testing on old software and old Linux distributions, to see where it all went wrong.
As a side-note, I tried the "new" vector drawing feature ...
					Since it seems to be a PureBasic bug, I will do some testing on old software and old Linux distributions, to see where it all went wrong.
As a side-note, I tried the "new" vector drawing feature ...
- Wed Dec 28, 2022 10:46 am
- Forum: Linux
- Topic: Printing does not work under Linux
- Replies: 13
- Views: 2417
Re: Printing does not work under Linux
Try using the qt subsystem. That 'fixed it' for me.
There will be other layout issues to fix if you change subsystems...
Jim
OK, I will look into this, thanks Jim.
Since others had this problem, I have a feeling this really can be a PureBasic bug, not only a major mistake by myself. Did anyone ...
- Tue Dec 27, 2022 8:57 pm
- Forum: Linux
- Topic: Printing does not work under Linux
- Replies: 13
- Views: 2417
Re: Printing does not work under Linux
Thanks for checking. Then we know it only applies to Linux. And to other people than just me.
Thanks for kind testing and prompt feedback everyone!
Any ideas how to solve this issue?
- Tue Dec 27, 2022 8:53 pm
- Forum: Linux
- Topic: Printing does not work under Linux
- Replies: 13
- Views: 2417
Re: Printing does not work under Linux
Windows:
http://vbpunktnet.de/PureBasic/WindowsPBTest.pdf
Linux:
http://vbpunktnet.de/PureBasic/PBTest.pdf
Thanks for testing and sharing!
Exact same results as me, for both Linux and Windows. I do get the same even for very old Ubuntu versions and PureBasic 4.10/4.20 dating 15 years back in ...
- Tue Dec 27, 2022 8:49 pm
- Forum: Linux
- Topic: Printing does not work under Linux
- Replies: 13
- Views: 2417
Re: Printing does not work under Linux
You did help, since you proved that you got the exact same results as me. Only the 595*842pixel image.Janni wrote: Tue Dec 27, 2022 5:10 pm I can't help much besides I was tempted to try using Linux Mint 20.3 and PB6.
On the output I got this:
https://ibb.co/0YW3mtT
- Tue Dec 27, 2022 3:26 pm
- Forum: Linux
- Topic: Printing does not work under Linux
- Replies: 13
- Views: 2417
Printing does not work under Linux
I made a small invoicing application for Linux in a long time ago, where printing the invoices are one of the major functions.
The latest version was compiled with PureBasic 4.10, about 15 years ago already :o
This program worked for several years under Ubuntu, then the printing failed to work ...
					The latest version was compiled with PureBasic 4.10, about 15 years ago already :o
This program worked for several years under Ubuntu, then the printing failed to work ...
- Wed Sep 24, 2008 9:55 pm
- Forum: Linux
- Topic: Can't select new date with Dategadget()
- Replies: 4
- Views: 3008
- Mon Sep 22, 2008 6:59 pm
- Forum: Linux
- Topic: Can't select new date with Dategadget()
- Replies: 4
- Views: 3008
- Thu Sep 18, 2008 9:51 pm
- Forum: Linux
- Topic: Can't select new date with Dategadget()
- Replies: 4
- Views: 3008
Can't select new date with Dategadget()
I can open the date selection window, but I can't change the date, or even close the selection window. This also happens with the example file for dategadget.
I tried this on two different computers, Ubuntu 7.10 Gutsy/PB 4.20 and ubuntu 8.04 Hardy/PB 4.30beta1, both with the same results. The same ...
					I tried this on two different computers, Ubuntu 7.10 Gutsy/PB 4.20 and ubuntu 8.04 Hardy/PB 4.30beta1, both with the same results. The same ...
- Fri Jun 13, 2008 9:30 pm
- Forum: Linux
- Topic: Can't print from Ubuntu 7.10
- Replies: 2
- Views: 1713
- Fri Jun 13, 2008 12:21 pm
- Forum: Linux
- Topic: Can't print from Ubuntu 7.10
- Replies: 2
- Views: 1713
Can't print from Ubuntu 7.10
Even the single line:
gives PureBasic linker error:
Printer.a(PrintRequester.o): in funtion `PB_PrintRequester`:
PrintRequester.c:(.text+0x5c): undefined reference to `gnome_print_job_new`
What does this mean?
I should be able to print from PureBasic 4.20 within Linux ?
					Code: Select all
PrintRequester()
Printer.a(PrintRequester.o): in funtion `PB_PrintRequester`:
PrintRequester.c:(.text+0x5c): undefined reference to `gnome_print_job_new`
What does this mean?
I should be able to print from PureBasic 4.20 within Linux ?
- Fri Jun 13, 2008 12:02 pm
- Forum: Linux
- Topic: 2 OS functions
- Replies: 5
- Views: 2919
- Fri Jun 13, 2008 7:44 am
- Forum: Linux
- Topic: 2 OS functions
- Replies: 5
- Views: 2919