gingercat
Posts: 48
|
| Posted: 09/07/2010, 1:54 PM |
|
I've looked through the forums and found a heap of comments about converting a CCS page to PDF - a lot of them are old and probably apply to previous versions of CCS so ....
Has anyone found a foolproof way of converting a CCS page to PDf?
I really want an option that is language independent so I can use it with C# and php so it seems the Convert Page to PDF event with a PDF creation app is the way to go.
what PDF conversion apps work best with this?
Is there an app that will work that doesn't require to be installed as a pdf printer?
|
 |
 |
ab5ni
Posts: 177
|
| Posted: 09/07/2010, 3:04 PM |
|
Don't know if this is the answer u are looking for, but I've just used fpdf and wrote a bunch queries, and everything works nicely for me. TCPDF seems to be very popular in the forums, too.
Regards
_________________
Randall Jouett
Amateur Radio: AB5NI
I eat spaghetti code out of a bit-bucket while sitting at a hash table! And yes, I paid for the meal in cache!
|
 |
 |
gingercat
Posts: 48
|
| Posted: 09/07/2010, 3:37 PM |
|
What I'm hoping to do is set up a working CCS page with its queries etc and then convert it to PDF. The Convert to PDF page event should do this (somehow) My question is how?
I don't really want to have to manually create php queries etc and rebuild the PDF file from scratch mainly because I may be using this for quite a few pages and the hand coding would be too much
|
 |
 |
mamboBROWN
Posts: 1713
|
| Posted: 09/08/2010, 7:44 PM |
|
gingercat,
Are you trying to put the whole page (including header and footer) in the generated PDF or are you only including the content of the page in the PDF??
|
 |
 |
gingercat
Posts: 48
|
| Posted: 09/08/2010, 8:33 PM |
|
I'm trying to do the whole page. Mainly because its easier to apply to any page without having to manually write queries and php.
I want someone to be able to view a data grid then click a button and convert to PDF.
HTMLDOC does this pretty well actually I've discovered since I started this topic BUT its pretty basic and doesn't handle the CSS style formatting very well. PDFCreator is supposed to be able to do it but I haven't been able to get it working so far.
|
 |
 |
laneoc
Posts: 154
|
| Posted: 09/09/2010, 3:19 PM |
|
I'm using HTML2PDF.
But I'm hoping to find something better. There are a lot of page features I needed that took a lot more coding than I had hoped. Some page features I wanted, I never did resolve and compromised on the output.
_________________
Lane |
 |
 |
datadoit
|
| Posted: 09/09/2010, 3:37 PM |
|
The fellers over at www.ccselite.com have created a PDF generator for
CCS. May be worth looking at.
|
|
|
 |
gingercat
Posts: 48
|
| Posted: 09/09/2010, 3:40 PM |
|
Anyone else using it? If so what's it like?
I have asked them some questions about it but waiting for replies.
|
 |
 |
ab5ni
Posts: 177
|
| Posted: 09/10/2010, 4:46 PM |
|
From personal experience in this area, I'd say to just bite the bullet and write the queries and code. I use fpdf to accomplish things, although I'd probably jump over to tcpdf if I was starting out anew, mainly for the UTF-8 capability. Yes, writing all the queries and formatting code can be a pain when starting from scratch, but eventually you'll have enough code written that all you'll really have to do is some copying, pasting, and a bit of editing.
Regards
_________________
Randall Jouett
Amateur Radio: AB5NI
I eat spaghetti code out of a bit-bucket while sitting at a hash table! And yes, I paid for the meal in cache!
|
 |
 |
datadoit
|
| Posted: 09/10/2010, 6:15 PM |
|
I second the FPDF (http://www.fpdf.org/) recommendation. Also look at
integrating FPDI
(http://www.setasign.de/products/pdf-php-solutions/fpdi/) which allows
you to load in existing PDF documents, then overlay your own data.
Great for applications where you need to populate pre-created forms.
|
|
|
 |
gingercat
Posts: 48
|
| Posted: 09/10/2010, 6:57 PM |
|
How successful will be mixing php code in with a C# site tho?
|
 |
 |
alisontin
Posts: 1
|
| Posted: 09/20/2010, 8:49 PM |
|
"I'd say to just bite the bullet and write the queries and code."
Hey, would you specify what you really mean with that?
------------
Software Development
http://byteboss.com/services.aspx
|
 |
 |
phaider
Posts: 37
|
| Posted: 09/22/2010, 12:09 PM |
|
Hello,
do you know SharpPDF? http://sharppdf.sourceforge.net/
Maybe that's a solution for u.
Peter
|
 |
 |
gingercat
Posts: 48
|
| Posted: 09/22/2010, 1:45 PM |
|
yeah I tried that but found it was a bit limited in its output - I don't think I ever got it working properly
|
 |
 |
phaider
Posts: 37
|
| Posted: 09/23/2010, 12:46 AM |
|
Hello once again,
there is another product, call "aspEasyPDF", by Mitdata (John Lohmeyer) - see also http://www.mitdata.com/
Pos: it has many useful functions, i made a lot of projects with it and it works very well. There exist also a tool, where you could draw forms, and in the background there command are generated.
Neg: it is only availabe for classic asp (ask John Lohmeyer for the .net version, which is still under development) and it has a "strange" copy protection.
But all in all it is a good product.
Peter
|
 |
 |
ab5ni
Posts: 177
|
| Posted: 10/09/2010, 7:26 PM |
|
Quote alisontin:
"I'd say to just bite the bullet and write the queries and code."
Hey, would you specify what you really mean with that?
Sure. No problem, and sorry it took so long to reply.
What I do is this: write the queries and acquire the data, then use fpdf to "render" the page, trying to make it look exactly like some filled-out form that a client might request. This usually requires loading logos, drawing boxes, etc., and then displaying the table data at various X/Y locations that "fill in" the form.
Does that help?
Regards
_________________
Randall Jouett
Amateur Radio: AB5NI
I eat spaghetti code out of a bit-bucket while sitting at a hash table! And yes, I paid for the meal in cache!
|
 |
 |