\Delphi 6 Typical examples of database development \ Chart drawing

1、 Open a subform in the main form :ShowForm(Tfrm_Print);

procedure Tfrm_Main.ShowForm(AFormClass:TFormClass);
begin
with AFormClass.Create(Self) do
try
ShowModal; // Blocking or modal windows , Only when you close the current window , To operate the father window .
finally
Free;
end;
end; // This example has an exception , Prompt unit chart The reference itself , Because the project is named program Chart; And the name of the control class used Tchart The conflict , Change the name of the project to program MyChart; Recompile, .

2、 Print pie charts ;

 implementation
uses printers;
{$R *.dfm} procedure Tfrm_Print.btn_PrintClick(Sender: TObject);
var h,w:longint;
begin
Screen.Cursor := crHourGlass;
try
Printer.BeginDoc;
try
h:=Printer.PageHeight;
w:=Printer.PageWidth; Chart1.PrintPartial( Rect( w div ,
h div ,
w - (w div ),
h - (h div ) )); Printer.EndDoc;
except
on Exception do
begin
Printer.Abort;
Printer.EndDoc;
raise;
end;
end;
finally
Screen.Cursor:=crDefault;
end;
end;

Print pie charts

other :

Chart1.CopyToClipboardMetafile(True);  // Copy to pasteboard

if SavePictureDialog1.Execute then
begin
Chart1.SaveToMetafile(SavePictureDialog1.FileName); // preservation by .wmf file
end;

 The first 1 Describes the Delphi Database development tools , Include BDE Administrator、SQL Explorer、SQL
Monitor and Database Desktop And other database tools . It also introduces SQL Language , Including universal SQL check
Inquiry statement 、 Update query statement 、 Connection between tables and data definition language , And it emphasizes how to use Delphi in
Use SQL Statement to create a query .
The first 2 Zhang first introduces Delphi Basic concept and standard process of document management / function , And provide a record file
Application example , Finally, a comprehensive application is provided Delphi File management function file management program example .
The first 3 Chapter passed “ Student roll management system ” The development of introduces how to use DAO Technology to design a database should
Use procedure .
The first 4 Describes the Delphi Supported by 4 There are two ways of data exchange , The clipboard 、 Dynamic data exchange (DDE)、 Yes
Like connecting and embedding (OLE), And dynamic link library (DLLs), And discussed how to use this 4 There are three ways to implement an application
Data exchange between orders .
The first 5 This chapter introduces reports and charts , from QReport Component begins with the concept of report 、 The main function of the implementation ,
And how to create a report , A specific example program is also given to illustrate how to use Delphi Processing charts in .
The first 6 An example of this chapter is a post mail processing system , This example can manage according to the information provided by the mail sender
Mail system .
The first 7 This chapter introduces the development process of bookstore leasing management system , Readers can learn how to save manpower as much as possible ,
Automatically complete the data update operation .
The first 8 This chapter introduces the design of alarm program based on database , This example is characterized by the background of the program interface and the program
All the sound files are stored in the database , It involves 3 There are two ways of database storage , Simple data storage ( Such as character
Strings and integers, etc )、 Image data storage and sound file storage .
appendix A It introduces SQL query language .
appendix B Lists Delphi Common components and their properties in 、 Methods and events .
appendix C What is not covered in the example is described in DAO technology .

D:\Delphi3 Folder \Delphi 6 Typical examples of database development \OLE Application development \OLEMDI.DPR

The clipboard and DDE yes Windows There are two methods of data exchange under the background ,Delphi In a simple and friendly way
Corresponding functions , It provides convenience for user programming . As a general rule , The clipboard is mostly used for static data transmission , and DDE
For dynamic data exchange 、 Control the operation of other programs, etc .
Delphi Support OLE technology , This chapter introduces OLE Application development technology . Another part of this chapter
One of the key points is DLL programming , In particular, the form reuse mechanism is Delphi Yes Windows Next DLLs A part of programming
A major improvement . Using dynamic link library , Users can build their own program module library step by step , Accumulate for future work
material .

Open the subform in the main form && Print pie charts 《Delphi 6 Typical examples of database development 》-- More related articles on chart drawing

  1. C# Menu control for 、 The main form opens the subform 、GroupBox Control use

    One . background I studied a year ago C#, But I didn't actually do it in the project APP, Pick it up again and apply it to the project . My colleague would have made a CANOPEN Device management interface , Due to the recent search of other people's development interface , I think there's a lot to rearrange , And I have ...

  2. Caliburn.Micro Close the parent form, open the child form

    For example, when we log in, we need to close the parent form and open the child form . Use Caliburn.Micro When we close the login window, the main page will also close . The solution is on the login page CS It says in it IndexView iv = new ...

  3. window.open Open a subform , Close all subforms

    demand : adopt window.open Method opens a subform , When closing the main form . Subforms should also be closed . Realize the idea : 1. Open subform function window.open(url,winName) The second parameter of winName Be able to uniquely mark ...

  4. 【winform】 The main form is multithreaded to pass values to the child form

    1. The main form is multithreaded to pass values to the child form Solution : Mainly using delegation , Because there will be cross thread errors Main form public FormMain() { InitializeComponent(); //background th ...

  5. winform Open in panel Inside form forms , Child forms operate on child forms or parent forms at the same level

    Recently started a winform project , It used to be web project . Problems encountered , It's within the framework , Left and middle main It's all used panel To achieve form, Is to put form The form opens to panel in , On the left side of the implementation is navigation , In the middle is the exercise ...

  6. winform After opening the subform , Refresh parent form in child form , Or close the child form and refresh the parent form

    winform After opening the subform , Refresh parent form in child form , Or close the child form and refresh the parent form , Collected several methods , List the following : One .  Ownership law Parent form , The name is “fuForm”, There is a common refresh method in the parent form , That is, form data initialization ...

  7. C# Embed subform , Determine whether the subform is open

    /// <summary> /// Embed subform , Determine whether the subform is open /// </summary> public static Form1 f; public void For ...

  8. c# The child thread opens the child form

    Next is to open a child window in a child thread , It turns out to be else Inside the cross thread operation form control InvokeRequired invalid , Cannot be used to open a subform ,addonetwo.InvokeRequired, I can't visit ? God knows to help back ...

  9. WinForm------ How to open a child form and close the parent form at the same time

    Method : How to open a child form and close the parent form at the same time this.Hide(); new Frm_Management().ShowDialog(); this.Close();

Random recommendation

  1. 16-1-27---JDBC review (01)

    JDBC Database connection learning      use jdbc Connect to database     1. The load driver         Class.forName("");         By registering, there will be two objects in memory , And use it ...

  2. Two lines of code JavaScript Date validation for

    We usually JavaScript Verification date in , The basic idea is , First judge whether the date is valid , Then judge whether there is a day in that month , For example, some months don't have 31 Japan , In February, there is no 29.30 Japan , February in leap year doesn't have 30 Day and so on . accidental ...

  3. centos7 Compilation and installation pure-ftpd-1.0.42

    One . download wget https://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.42.tar.gz Two . install tar xvf ...

  4. CSocket The server (TCP)

    I understand it : Compare the interaction project between server and client to the company visited by outsiders , Every client access , The front desk manager of the server is required to receive this customer , Then the front desk manager calls a receptionist to take the customer upstairs . The two roles of the server are the front desk manager and the receptionist ...

  5. mac ulimit

    sudo sysctl -w kern.maxfilesperproc=1048576ulimit -n 1048576

  6. Java Way of learning : Explain in detail Java analysis XML Four ways

    XML Now it has become a common data exchange format , Its platform independence , Language independence , System independence , It brings great convenience to data integration and interaction . about XML My grammar knowledge and technical details , Need to read relevant technical literature , It contains DO ...

  7. malloc Memory allocation and free The principle of memory release

    malloc Memory allocation and free The principle of memory release I always wanted to see malloc Principle , In search of several malloc Then give up after the source code , Obscure . Later, my roommate bought a book with a deep understanding of computer system , It says malloc Principle ...

  8. 《Oracle DBA Work notes : Operation and maintenance 、 Data migration and performance tuning 》 PDF download

    One : Download route Two : The design of this book 3、 ... and : Contents of this book The first 1 piece Database operation and maintenance chapter 1 Chapter Database installation configuration 1.1 Preparation before installation 11.2 Install database software 51.2.1 Method 1:OUI install 61.2.2 Method 2: Silent installation 8 ...

  9. Linux install middleBox And prads

    PRADS prads github install prads github  project prads github command

  10. kail linux arp cheating

    First connect wifi, Enter the intranet 1, Check the live hosts of the intranet   command  fping -asg 192.168.1.0/24    ( Depending on the circumstances , Suppose the router address here is 192.168.1.1) Other ...