473,400 Members | 2,163 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,400 software developers and data experts.

export to pdf with no phplib

I wanted to be able to send a letter to every customer I have on my
database. I bit of research lead me to PHPlib that costs needs setup
etc. So I came up with a really easy way to do that.

1) First add to your css
P.newpage {page-break-before: always}

2) create with css a layout for your page. Echo data on the page.

3) add anytime you are starting a new page <P CLASS="newpage"This
will make sure that when you choose to print from your browser a new
page will start.

4) print from your browser or if possible print to pdf.

hope you find this useful.

Sep 20 '07 #1
2 7536

<dj********@googlemail.comwrote in message
news:11**********************@22g2000hsm.googlegro ups.com...
>I wanted to be able to send a letter to every customer I have on my
database. I bit of research lead me to PHPlib that costs needs setup
etc. So I came up with a really easy way to do that.

1) First add to your css
P.newpage {page-break-before: always}

2) create with css a layout for your page. Echo data on the page.

3) add anytime you are starting a new page <P CLASS="newpage"This
will make sure that when you choose to print from your browser a new
page will start.
lol. i love html noobs. ah the sweet naivete. you go right ahead and think
that will consistently be taken as an instruction rather than a request.
4) print from your browser or if possible print to pdf.
oooo! you mean your site requires each client to install a pdf print driver?
sounds far removed from the 'easy button' you were hoping for...and a lot of
customers who are going to jump ship.
Sep 20 '07 #2
dj********@googlemail.com wrote in news:1190293605.829503.299660@
22g2000hsm.googlegroups.com:
I wanted to be able to send a letter to every customer I have on my
database. I bit of research lead me to PHPlib that costs needs setup
etc. So I came up with a really easy way to do that.
FPDF is way easier. A PDF gets created on the SERVER, and then you email
that PDF. Takes a bit of time to get the hang of it, but lots of examples,
it's FREE and it WORKS GREAT!

http://www.fpdf.org/

Sep 20 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Magnus Warker | last post by:
Hi, after searching the web without finding what I'm looking for, I ask for help in this group. I would like to use phplib for authentication and session management. What I need, is a minimal...
0
by: Bjoern Rehm | last post by:
Hello, This might be a little off topic, but the PHPlib mailinglist doesn't seem to be very active, so maybe you guys can help me out. This is the problem: When in GET-Mode (Cookies...
0
by: koji kabuto | last post by:
I need to add the login boxes in my main page. I use PHPLIB and I see that I can define a login page, but this login page should not be the main page. So, how I can login in the main page? ...
6
by: gonzalo briceno | last post by:
I have been using phplib for a while and I really like the framework except for form creation. Maybe it is me but I in my opinion there isn't a good way to create forms or should I say, everything...
0
by: Diederick Huijbers | last post by:
Dear reader, For the last three years I'm using the template parser of PHPlib with a lot of pleasure. I think this is still the best mechanism for seperating PHP-code and HTML related code. Of...
205
by: Jeremy Siek | last post by:
CALL FOR PAPERS/PARTICIPATION C++, Boost, and the Future of C++ Libraries Workshop at OOPSLA October 24-28, 2004 Vancouver, British Columbia, Canada http://tinyurl.com/4n5pf Submissions
5
by: David | last post by:
I am a little confused by DB2 Backup and Export. I used "db2 backup db QAS to /dev/rmt0" backuping 650GB database to a IBM LTO 3581 (1 drive) only 11 hours. But I used "db2 export to /dev/rmt0...
5
by: JHNielson | last post by:
I have a somewhat simple question, but have been baffled by it for a while, and now I'm on a tight deadline - have to get it done within 24 hours. I am trying to export a set of files to my hard...
1
by: Defacta | last post by:
Hi, I am using the phplib to manage php authentifications and provileges, that works fine but I cannot get the ID of the current session I try this for example: echo $sess->get_id() But...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.