Printer List Enhancements

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
collectordave
Addict
Addict
Posts: 1309
Joined: Fri Aug 28, 2015 6:10 pm
Location: Portugal

Printer List Enhancements

Post by collectordave »

Requests for printing enhancements seems to have been mentioned here for years.

Where PB is now with the vector drawing and printing has basically solved the DPI questions as they are DPI independent. You can also obtain the DPI of the printer using the vector commands if absolutely neccessary.The question of orientation has also been solved for normal printers with the rotate co-ordinates and translate co-ordinates.

The major problem is for business applications that require the size of the finished printed solution before beginning to define what is to be on the printed page. These need to select the "Target Printer" and "Paper Size". For some of the larger printers the paper source can also be significant.

So for my twopence all that is needed is the following.

1. List of installed printers which needs to be selectable. This could return an index to the printer selected for use later when needing to print and for the next two functions.

2. List of paper sources on the printer selected in 1 above.

3. List all supported paper sizes on the selected printer.

Once selected the programmer needs to know or obtain some basic information.

Printer Hard Margins. (If any)
Printer Soft margins(If any)

Preview is solved and is fairly easy to enhance as it is simply PB source code.

Print which pages dialogues are really only usefull from a print preview window so the user can see what is on each page or from a true WYSIWYG application. With the above the coder can implement these fairly easily.

Needs to work across all platforms supported by PB.

I know these are implemented in VB and are the only printing parts I can think of that PB is missing. So please can these be implemented?
collectordave
Addict
Addict
Posts: 1309
Joined: Fri Aug 28, 2015 6:10 pm
Location: Portugal

Re: Printer List Enhancements

Post by collectordave »

After learning a little more.

The only cross platform enhancements I can request are the following.

Selected Page height not printable area
Selected page width not printable area
Printer Hard Margins. Top,Left,Bottom,Right
Printer Soft margins. Top,Left,Bottom,Right

Everything else can be worked out it appears?

These are the only bits missing that I can see. Try this https://github.com/collectordave/PureBa ... nd-Preview

Regards

cd
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: Printer List Enhancements

Post by srod »

For me, those are exactly the things that have been missing (now that we can get the dpi through the vector lib).

A good request! :)
I may look like a mule, but I'm not a complete ass.
Torp
User
User
Posts: 82
Joined: Fri Apr 01, 2005 11:29 am

Re: Printer List Enhancements

Post by Torp »

yes, a VERY GOOD request !... Who will be present in the next version (I dream :mrgreen:)
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: Printer List Enhancements

Post by davido »

Must have missed this one, first time round.
A very good request.
DE AA EB
User avatar
Andre
PureBasic Team
PureBasic Team
Posts: 2071
Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:

Re: Printer List Enhancements

Post by Andre »

+1
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)
Ulix
User
User
Posts: 48
Joined: Wed Jan 23, 2008 12:45 pm
Location: France, Montpellier

Re: Printer List Enhancements

Post by Ulix »

+1
Post Reply