>1. I have a Emp.dbf, its having five fields namely 1.ID 2.Name 3.Designation 4.Department 5.Place, total its having 1500 records.
>
>2. I want to print the records through coding only but not in the Report Designer.
Why?
You have several alternatives, but I would suggest using the Report Designer since it is easier. The alternatives include:
@ ... say You can send data directly to the printer, but it is tricky to do a reliable preview this way.
Use my download #9991 (or a similar solution), to print in text mode, or to print to Excel. (Text reporting on your own can be done with the "?" and "??" commands; you might also try to do your own Excel report. See my article on Excel Automation.)
Use third-party reporting tools like Crystal Reports. Those usually cost extra money.
And probably a few more.
>
>3. I have create Print.scx, In that I have placed one combobox, one command button, through combo box Additem method add five departments
>namely 1.Accadamic 2.Establishment 3.Accounts 4.Estate office 5.Electric. Fox example I want to print Employee whose working in
>Accounts and I have select Accounts in Combo box and click print Command button the Printer print Only Accounts department Records.
>Let assume the Accounts Department total 200 records, every pages I want print 30 records only and every pages I want to print Headings.
>The heading is
>1st line " Qutech software solution"
>2nd line is "No. 12 Ashok nagar, Chennai"
>
>How to write Printing code?
>
>Thanking you
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)