Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Reports in PHP 1

Status
Not open for further replies.

monkle

Programmer
Feb 11, 2004
132
US
I am currently working on an online order management system. The only thing I need to complete before we can start processing orders is printing invoices.

We have Crystal Reports (Dev. Edition), and we have the new Microsoft Report Services. I have poured days, possibly weeks into attempting to get each of these working, but to no avail.

I really have to have the invoice working ASAP. I want to attempt creating the invoice in php, because it's one thing I know is functioning correctly on our server. I have a couple ideas on how to go about it, but I want to run it by you guys.

I have two theories on how to go about it.

1 Write php scripts that talk directly to the printer

2 Write php scripts that generate and save files, and then send the files to the printer.

Server Specs:
win2k
IIS 5
SQL 2000
PHP 4.3.7
 
sleipnir214
Thank you for your suggestion. I decided to go with it.

I had fun playing with the printer functions yesterday, and succeeded in getting the printer to print out some random text. I've come up against a problem, though...

How do I set margins on the pages? I've been trying to find a good resource on how to use the printer functions, but I have yet to find anything on formatting.
 
I don't think you can. I see nothing in any of the PHP online documentation that mentions it.

More than likely you'll have to use the printer_draw_text() function and keep track of margins yourself.


Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Bastien
I took a quick look at the links that you posted the other day. I decided to mess around with it, and see if it was a possibility.

The upshot of it is, I'm almost completely finished with the invoices. It took me a bit of time learning my way around it, but once I started to get the hang of it, I was very impressed. Thank you for getting me pointed in the right direction.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top