IonicWind Software

Announcements => User Offerings => Topic started by: Andy on June 16, 2017, 06:35:21 AM

Title: PrintLine library version 1
Post by: Andy on June 16, 2017, 06:35:21 AM
Well here it is.

This library file allows you to print directly to a GDI only printer.

Yes there are still things to be worked on, however I think this one is worth placing here.

It has the ability to word wrap onto multiple lines and even over pages.

You can modify the number of lines per page should you need to.
Set a font, size, and weight.

Library defaults:
Font Arial
Size 12
Weight 400

I think you will find it easy to use.

Best to print to PDF to save your ink.

Comments (good and bad) always welcome.

Attached are the files, as always copy the lib file to your IWBDev\libs folder, and the include file to IWBDev\Include folder.

Read through the example code program and have a go!

Thanks,
Andy.
:P

Title: Re: PrintLine library version 1
Post by: Andy on June 17, 2017, 05:15:23 AM
What does anyone think then?

As I said this is only the first version, lots to work on yet, but it does give you a replacement for the WRITEPRINTER command if you can't use it.

Title: Re: PrintLine library version 1
Post by: Andy on June 18, 2017, 04:45:29 AM
I now have different font / colour options working in the next version - see attachment.

When I have headers and footers included I will post a copy here for you all.

Thanks,
Andy.
:)
Title: Re: PrintLine library version 1
Post by: Egil on June 19, 2017, 05:05:50 AM
Andy,

Just tried the version you had posted friday. Right now I'm out of paper, so only tested printing to PDF. (Using Bullzip PDF Writer here)
Setting margins only works for the left side, and become twice as large as I  wanted. On the right side the printed line seems to go outside the "paper".
So wonder if  there is something I'm missing...

As soon as I log off the site, I'll go into town to get more paper so I can test it on a real printer.


Egil
Title: Re: PrintLine library version 1
Post by: Andy on June 19, 2017, 12:17:41 PM
Egil,

Thanks for the feedback.

Version 2 will be released tomorrow with many fixes and extras.

With regards two the right hand margin, frankly, l don't trust the formulas on it, so working on that too.

I would suggest you hold off printing until I release v2 tomorrow, then we can see what needs to be addressed.

Thanks again, Egil!