xPrint - Printing Engine (WIP)
I have an update for download. This changes how the preview window looks (more like Microsoft Word print preview on a floating page) and adds in header support. There is no footer yet since I want to make sure header works first. There are some variables you can use in the header - %PAGE%, %DATE%, etc...
I'd like a little testing to make sure it works before moving on with footers and other things. Check the example to see how headers work.
Take care! ^_^
http://www.seijin.net/Storage/Code/xPrint.zip
I'd like a little testing to make sure it works before moving on with footers and other things. Check the example to see how headers work.
Take care! ^_^
http://www.seijin.net/Storage/Code/xPrint.zip
Xombie, this is brilliant. Haven't checked it out yet, but on paper this is exactly what I need to save one hell of a lot of time and effort so I'll be making use of this.
One question, the LPGL licence; can I use your code in a commercial application? Guess I should go and have a look at the details of the LPGL licence!
Actually, two questions! Does this run okay on Win 98? I only ask because I know from experience that with GDI, you have to be very very careful to tidy up where Win 98 is concerned.
Thanks.

One question, the LPGL licence; can I use your code in a commercial application? Guess I should go and have a look at the details of the LPGL licence!
Actually, two questions! Does this run okay on Win 98? I only ask because I know from experience that with GDI, you have to be very very careful to tidy up where Win 98 is concerned.
Thanks.
I may look like a mule, but I'm not a complete ass.
Licenses... I don't know too much about them, actually
I just didn't want someone ripping off my work and calling it their own without me being able to say something. I think when I wrote this, I was paranoid about people stealing code and calling it their own. Something caused me to do it but I'll be darned if I can remember what exactly. Something about someone taking code and saying they wrote it. :shrug: Something like this doesn't need it, I'm sure. What's the general consensus on licenses? One of the things that bothers me is when I make a fairly big thing like this that can be used in different apps and then get nothing. No recognition and probably my name stripped from the code. I'm not saying I want people flooding my email with letters gushing about how great I am... but I wouldn't mind a little tiny footnote in the readme.txt or whatever with something like "Report printing code by Sam 'Xombie' Shults" or something like that. For most of the code I share, I don't care so much. But others took a while. Like this and especially the xGrid code.
Sorry, meandering there for a little bit ^_^
As for the Windows 98 issue, yeah, don't use this just yet. Give me the week to finish adding the footer code and cleaning it up. I'm not properly handling the hdc returned and I'm not freeing up the structure strings properly.
I might even have the beginnings of a GUI report designer by then but I'll concentrate on getting it in better shape before that.
Feel free to still send suggestions in the meantime.

Sorry, meandering there for a little bit ^_^
As for the Windows 98 issue, yeah, don't use this just yet. Give me the week to finish adding the footer code and cleaning it up. I'm not properly handling the hdc returned and I'm not freeing up the structure strings properly.
I might even have the beginnings of a GUI report designer by then but I'll concentrate on getting it in better shape before that.
Feel free to still send suggestions in the meantime.
Any objections to me then using this in a commercial app? All credit due will appear in the help about and accompanying .chm files etc.
With win 98, it's so much deleting the hdc (although this is important of course). I've found that win 98 will not delete pens, brushes etc. if still selected in a hdc. even if the hdc is released! Further, it won't report any problems, it just crashes out when the gdi resources are spent!
And even knowing this doesn't stop me making the same mistakes again, and again, and again...
With win 98, it's so much deleting the hdc (although this is important of course). I've found that win 98 will not delete pens, brushes etc. if still selected in a hdc. even if the hdc is released! Further, it won't report any problems, it just crashes out when the gdi resources are spent!

I may look like a mule, but I'm not a complete ass.
No, no objections to you using it in your commercial application
If the LGPL license restricts that usage then I'm granting special permission to you, srod, to use my code without restrictions. Was that official enough?
I trust you enough to use the code as you like. I'd just appreciate feedback on bugs or feature requests/enhancements that you spot. I haven't had to use it beyond simple testing yet. I plan on using it more soon so I was going run it through more rigorous tests but extra eyes (especially good coders) are always nice.
Also, I'll double check that I'm handling pens/brushes/etc... properly. I usually try to remove them before deleting but there's always those I miss
Or forget about in a rush.


Also, I'll double check that I'm handling pens/brushes/etc... properly. I usually try to remove them before deleting but there's always those I miss

Xombie ...
Using Minolta Di350f I've got the following error :
xprint.pb 3450 Invalid memory access.
Is probably an error in xp_CreatePrintJob() procedure ?
Using PDF Creator it's working fine.
Using Minolta Di350f I've got the following error :
xprint.pb 3450 Invalid memory access.
Code: Select all
*HoldJob\Header = AllocateMemory(4)
Using PDF Creator it's working fine.
LuckyLuke
- Fangbeast
- PureBasic Protozoa
- Posts: 4789
- Joined: Fri Apr 25, 2003 3:08 pm
- Location: Not Sydney!!! (Bad water, no goats)
Xombie are you still developing this?
Someone asked me when I would be putting print support into my address book and this seems like a good way of doing it.
- DoubleDutch
- Addict
- Posts: 3220
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
I may like to use your code too, if I do then you will get mentioned in the help, etcNo, no objections to you using it in your commercial application If the LGPL license restricts that usage then I'm granting special permission to you, srod, to use my code without restrictions.
If I do, can I get the same special permission as SRod?

https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
https://reportcomplete.com <- School end of term reports system
- DoubleDutch
- Addict
- Posts: 3220
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
Thanks 

https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
https://reportcomplete.com <- School end of term reports system
- Rook Zimbabwe
- Addict
- Posts: 4322
- Joined: Tue Jan 02, 2007 8:16 pm
- Location: Cypress TX
- Contact:
Excellent work, I may swiitch my report output format to this and see how it plays. I had been playing with this sort of idea for a while and had sort of half coded the same idea. An HTML Text style parser...
Now if only I could find a way to export to an excel file!!! TSSOFT says his computer is broken so he can't fix his original!
Now if only I could find a way to export to an excel file!!! TSSOFT says his computer is broken so he can't fix his original!
