Solved

How to print database?

Posted on 2004-08-10
9
162 Views
Last Modified: 2010-04-05
I'm using mysql database and how can i print it easly?
0
Comment
Question by:selas
  • 3
  • 2
  • 2
  • +2
9 Comments
 
LVL 12

Expert Comment

by:Ivanov_G
ID: 11760845
you will have to redefine your question... what exactly you want to print ?
0
 
LVL 17

Expert Comment

by:Wim ten Brink
ID: 11760963
1) Use a report writer. Rave Reports, QuickReports, QuickReports, they're all nice report generators.

2) Write your own report generator, walking through all the data you need and printing it to the printer. A helluvajob but very satisfying once it's done. Then another helluvajob if you change a field type in your table.

3) At http://delphi.icm.edu.pl/authors/a0000237.htm you can find DSP75 which is the Data Structure Printer. This can print structures of many different databases. You need an ODBC driver for MySQL in this case, though.
0
 
LVL 12

Expert Comment

by:esoftbg
ID: 11763372
download an example from:
page:        http://www.geocities.com/esoftbg/
  link:        Q_21088064.zip
0
 
LVL 4

Expert Comment

by:SurferJoe
ID: 11765555
Printer.BeginDoc;

procedure TApPrintChecksf.myTextSimple( myString: String; x, y: Real);
var
 PixX, PixY, Size: Integer;

begin
 Printer.Canvas.Font.Color := clBlack;
 Printer.Canvas.Brush.Color := clWhite;
 Size := Printer.Canvas.Font.Size;
 PixX := Round((x + myX)* PrinterDPIx) - xMargin;
 PixY := Round(((y + myY) * PrinterDPIy) - (Size * 1.5) - yMargin);

 Printer.Canvas.TextOut( PixX, PixY, myString);


end;

  Printer.EndDoc;

0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:selas
ID: 11770870
i cant find quickreport on my Delphi 7
where can i download it?
0
 
LVL 17

Accepted Solution

by:
Wim ten Brink earned 500 total points
ID: 11772342
QuickReports is a commercial product and has been replaced by the Rave Report designer since QuickReports wasn't performing that well. QuickReports is still inside Delphi 7, though. Delphi 7 does not automatically install Quick Report components.

Here's what to do to get the QuickReports components on the Delphi 7 Component Palette. You need to install the QuickReports package (dclqrt70.bpl). In Delphi, select Component | Install Packages. Click Add and select the file dclqrt70.bpl (found in the Delphi7\Bin directory). Click Open and then click OK.
0
 
LVL 4

Expert Comment

by:SurferJoe
ID: 11772433
Quick reports are more trouble than they’re worth. After committing a lot of time becoming familiar with the components, it was found that column totals on tabular reports were incorrect.

We are now using “Microsoft SQL Reports Services” with a high degree off success. It is rumored that “Microsoft SQL Reports Services Version 2” will support none server environments.
0
 

Author Comment

by:selas
ID: 11773772
where can i find Microsoft SQL Reports Services?
0
 
LVL 4

Expert Comment

by:SurferJoe
ID: 11773878
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now