Page 2 of 3
Posted: Tue Jul 18, 2006 10:04 pm
by Xombie
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
Posted: Sun Sep 03, 2006 7:04 pm
by LuckyLuke
Xombie ...
Any news on new features ? (Report Designer ?)
Maybe we can use the PDF library to export the reports ?
Take care !
LuckyLuke
Posted: Tue Sep 05, 2006 6:00 am
by Xombie
Huh. Didn't figure anyone was interested since it's been something almost 2 months that I posted.
Posted: Tue Sep 05, 2006 1:38 pm
by srod
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.
Posted: Tue Sep 05, 2006 2:48 pm
by LuckyLuke
I'm testing this for the moment ... exactly what I was looking for ...

Posted: Tue Sep 05, 2006 7:16 pm
by Xombie
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.
Posted: Tue Sep 05, 2006 7:21 pm
by srod
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...
Posted: Tue Sep 05, 2006 7:37 pm
by Xombie
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.
Posted: Tue Sep 05, 2006 7:48 pm
by srod
Thanks.
I'm about a week (estimate) away from requiring printing facilities and so any feedback won't be immediately forthcoming.
I look forward to using it though.

Posted: Mon Sep 11, 2006 12:02 pm
by LuckyLuke
Xombie ...
Using Minolta Di350f I've got the following error :
xprint.pb 3450 Invalid memory access.
Code: Select all
*HoldJob\Header = AllocateMemory(4)
Is probably an error in xp_CreatePrintJob() procedure ?
Using PDF Creator it's working fine.
Xombie are you still developing this?
Posted: Mon Oct 23, 2006 7:38 am
by Fangbeast
Someone asked me when I would be putting print support into my address book and this seems like a good way of doing it.
Posted: Mon Jan 21, 2008 11:35 am
by DoubleDutch
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.
I may like to use your code too, if I do then you will get mentioned in the help, etc
If I do, can I get the same special permission as SRod?

Posted: Tue Feb 12, 2008 11:48 pm
by Xombie
DoubleDutch - sorry, I missed this. Yes, feel free to use it if you find it useful.
Posted: Tue Feb 12, 2008 11:52 pm
by DoubleDutch
Thanks

Posted: Sat Mar 01, 2008 4:18 pm
by Rook Zimbabwe
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!
