The datagridview print expert component version 2.5 is officially released.

Source: Internet
Author: User

Version: 2.5.2 (Chinese)
Copyright: luckersoft (December 2009-December 2010)
Type: free for individuals, commercial charges
(With demo source code): datagridviewprint expert group and Demo code .rar

Since the publication of "Print experts", many enthusiastic friends have received their attention and support. Thank you for choosing this article. Based on the improvements made by users and friends, we have continuously improved the original version, mainly adding functions that everyone cares about and improving the printing performance. The official Chinese Version 2.5.2 is now released.

"Print expert" 2.5 is a professional printing solution component. It is highly efficient, practical, and convenient, features, perfection, and powerful technical support are the preferred solution for printing tasks in your project.

unique feature (this feature greatly improves operation efficiency and practicality. The red part is the new feature):
1, use the print scheme management mode : Save the common print setting parameters in the print scheme. You do not need to set the same print next time. You only need to select the corresponding print scheme to implement quick printing. This function is very suitable for users with multiple print tasks to improve printing efficiency and reduce the workload.
2. instant preview and print Settings : enables instant preview of the size, position, and color of the set parameters (such as the primary and Subtitle titles, headers, and footers, you do not need to preview it in the print preview window to make it easier for you to adjust it.
3. The print preview window can be scaled and dragged at Will to achieve the desired preview effect.
4. The printer settings and page settings are perfectly integrated . You do not need to open different windows on the printer, paper, margins and other parameters are set to improve operability.
5. You can select the rows and columns you want to print. : The columns you don't want to print, and the rows you don't want to print are determined by the user.
6. Provides the "Default Scheme" template to meet the general printing requirements. This improves the printing setting efficiency.
7. Two call solutions (simple solution and expert solution): the simple solution meets the flexible call needs of your project: two lines of Code can print data. Expert solution: allows you to directly set parameter items and print data in the code, which simplifies the operation process.
8. The data and appearance style of the dview are reedited. : Are you satisfied with the displayed appearance of the datagridview? Change! Are you not satisfied with the data content? Change!
9. You can print company logo images anywhere .
10, which perfectly prints any type of data in the datagridview : including text box, link file box, drop-down list box, button, check boxes, images, and other types of columns.

Powerful general functions:
1. You can not only set the title and subtitle, but also set their font, color, and alignment.
2. Set the header and footer as well.
3. You can customize the display style of the page number, and select whether the page number is displayed in the header or footer.
4. Align left and center to adapt to the page width. These three layout modes can be used together with the "fixed column width" function to fully meet the layout requirements of various printed content.
5. The "print data" label can set the print width of each column as needed, or even arrange rows again to meet the requirements of content display and reading.
6. implement all the functions of the Windows Default Print dialog box, and customize the paper (requires printer support ).

Xiaoxiao:
1. Try to create and configure the "Print Scheme" to make full use of it to greatly improve the printing efficiency.
2. Familiar with the configuration parameters can meet almost all the requirements of your daily print tasks.
3. After selecting the "fixed column width" function, go to the "print data" Page and use the mouse to pull the column width.
4. Select the row to be printed in the table on the right when printing the selected row.
5. You can use "Table Advanced properties" to set the print appearance of a table. (Recommended for use by skilled users)
6. You can use this component when you need to print data in the datagridview control in all. Net projects.


The following is an animation of the Software Interface (Version 2.0 ):

About
The datagridview printing expert component (hereinafter referred to as "print expert") isOne of the first professional datagridview printing components released in ChinaIt is a free software developed by lucker. You can use it freely in your non-commercial projects. If a business project uses it or you need to customize specific features, contact me.
"Print expert" is developed using vs2008. It can be used when data in the datagridview control needs to be printed in all. Net projects.
"Print experts" can quickly implement various print tasks based on different schemes selected by users, you can also flexibly set the attributes such as the text, position, Font, and color of the main subtitle, header, footer, and date of each scheme to customize the printing style, you can set general attributes such as printers and pages, and preview the print effect in a timely manner.

Preface
Table printing is an important output function during software operations, especially for report operations. For different tables, users often need to select different paper, printers, and page settings (including titles, headers, footers, and margins), and want to preview and print the results in real time. Generally, when a printing task changes, You can reset only one item. This is not only time-consuming, but also error-prone. To meet users' convenient and efficient printing needs, software developers have to develop their core business and spend a lot of time and energy writing printed code. Unfortunately, sometimes the results are unsatisfactory. In the face of such an embarrassing situation, we are honored to recommend this datagridview printing expert component to you. It isSpecialized printing components tailored to diverse print tasks and convenient and efficient printing needs. Developers only need two simple lines of code:
Lucker. dataprinter. dataprintset DPS = new lucker. dataprinter. dataprintset ("lucker", datagridview_printtable );
DPS. showdialog ();
You can easily implement complex print tasks. Everything behind this can be done with our "Print experts" with confidence. Printing has become so simple.

Features
Related Terms:
Print solution: a print solution contains all the settings in a print task. by managing the print settings with the print solution, save the settings in the solution, next time you encounter a print task that requires the same settings, you can simply select this scheme to print it, without having to set it from the beginning.
Solution details: details the values of each set attribute.
"Print experts" can quickly implement various print tasks based on different schemes selected by users, you can also flexibly set the attributes such as the text, position, Font, and color of the main subtitle, header, footer, and date of each scheme to customize the printing style, you can set general attributes such as printers and pages, and preview the print effect in a timely manner.

The following are detailed functions:
New print scheme: select the default scheme, modify the scheme settings to meet the printing requirement, enter the new print scheme name, and save the scheme.
Delete print scheme: select a print scheme that is no longer needed. The deletion is complete.
Modify the original scheme: select the scheme to be modified, change the attribute values in sequence, and save the changes.
Print: select a suitable print scheme or create a new scheme to save the printing.
Cancel printing: the cancellation is complete.
Title setting: select the check box to print the title item. Otherwise, no content is entered. Enter the text content of the title, set the vertical and horizontal positions of the text, and select a proper font and color. When you change the settings, you can see the real-time preview effect in the lower part of the window.
Header and footer settings: the settings in the relevant section are the same as those in the title settings. Note the following when setting the text of a page number:
Use {0} instead of the actual page number to be displayed, and use {1} instead of the actually printed page number. For example, if you enter "Page {0}, total page {1}", the actual output of the 10-page printing task is "Page 1st" when you print page 1st, 10 pages in total. Print 2nd pages and then output "2nd pages, 10 pages in total ".
You can set whether the page number is displayed in the header or footer.
Page number settings cannot be previewed in the window, but you can see the effect in the print preview.
Printer setting: You can specify the printer or select "Automatic Detection" to allow the system Program It is printed by the specified user during the call.
Print date: You can specify the date to be printed, enable the system to automatically print the current system date, and set the date format.
Number of copies: You can choose whether to print the number of copies of this printed document on paper.
Printer settings: select a printer that is currently installed in the system. You can set more printer properties. For printers that support custom paper, you can also add custom paper by specifying the length and width of the paper on the relevant page. The newly added custom paper needs to be opened in the next window before it can be seen in the paper list.
In fact, page settings: You can set the number of copies to be printed to a file and automatic paging, horizontal vertical printing, paper size, paper source, margin, and print range.
Print preview: You can easily switch between the first, previous, next, and last pages to achieve a variety of preview ratios. You can preview one, two, or six pages at a time. You can even drag the page with the mouse to move the page freely and zoom in or out the preview ratio with the mouse wheel. After previewing, you can click "preview again" to preview the changes ".

Development call

First, add reference: Right-click "Reference" in Solution Explorer and select "add reference" in the pop-up menu ", in the open window, find the DLL file dataprinter of the component on the "Browse" tab. DLL ". Click "OK". The added dataprinter will appear under "Reference.
There are two alternative call schemes:

I. Simple solution:

A printing setting window is displayed. You can select an existing printing scheme or modify some parameters to preview and print the settings. This scheme is easy to call, and you can set parameters on your own, allowing you to print them After previewing. Is the most common printing method. The method is as follows:
Declare and initialize the component object. The Code is as follows:
Lucker. dataprinter. dataprintset DPS = new lucker. dataprinter. dataprintset ("lucker", datagridviewname );
Lucker. dataprinter is the namespace of the component.
The dataprintset class is a printing setting window class. The constructor parameters are described as follows:
1. String printuser: Specifies the printer name. It is used to display the name of the printer when "Automatic Detection" is set.
2. datagridview dgv: the name of the datagridview control to be printed. The print program prints the data according to the format of the datagridview control. In later versions, you can set more settings for the incoming data of the dview.
3. The print setting window is displayed. The Code is as follows:
DPS. showdialog ();

2. Expert Solutions:

This method allows the programmer to set print parameters and print data directly without displaying the print setting window or opening the preview window, enabling direct and fast printing, for fixed common print tasks, this solution simplifies user operations and is more convenient and efficient. However, programmers are required to be familiar with the printing-related methods (functions) provided by this component and the meanings of relevant parameters. The method is as follows:
// Initialize the parameters of the printed object in an existing specified scheme.
Lucker. dataprinter. Printer printer = new lucker. dataprinter. printer (datagridviewname, "default solution ");
// You can customize the print item parameters based on the print requirements of the original scheme (this step is optional ):
// The following uses the parameters for customizing the main title items as an example. Other items (such as subtitles, logo images, headers and footers, pages, printers, and others) are similar:
Lucker. dataprinter. defaultoptions maintitlesetting = new lucker. dataprinter. defaultoptions ();
Maintitlesetting. Enable = true;
Maintitlesetting. Text = "New title text ";
Maintitlesetting. halign = stringalignment. Center;
Maintitlesetting. valign = stringalignment. Center;
Maintitlesetting. fontitem = new font ("", 20, fontstyle. Bold );
Maintitlesetting. textcolor = color. blue;
Printer. setmaintitle (maintitlesetting );
// The custom settings are complete and printing starts.
Printer. printit ();

For more detailed description and call process, see the "print expert demo file" attached ".

About free and registration:
This component is a free software for individual users, but for commercial users, You need to register. The free version cannot be used for commercial purposes.
1. Individual users can use it without registration, and there is no function or time limit.
2. unregistered users print unauthorized identifiers at the footer of the document. If you want to remove the logo, please contact us. We can provide a free registration code valid for one month.
3. for commercial applications, please contact us to complete registration. We will provide you with reasonable prices and strong after-sales support, and provide appropriate function extensions.
4. Commercial Registration charging standards (tentative, change without notice ):Discount price, $50 for each registration code(Note: One Registration Code corresponds to one computer, and you can apply for multiple registration codes at a time for further discounts. The original registration version can be upgraded free of charge ).

About cracking:
. Net products are not difficult to crack, and we have not obfuscated DLL and other anti-cracking measures. I am not opposed to the decompilation of this component from the perspective of various cracking enthusiasts and experts, but the author hopes that everyone will respect the work of a software developer and understand the hard work of programmers, do not spread cracked files. We have fully considered the needs of individual developers and provided them to individual users for free to the maximum extent. The reason why the printed document is marked below is mainly to prevent commercial applications in the free version. I would like to invite you to discuss the printed topics.

Contact author
Author: lucker
Email: luckeryin@163.com
QQ: 120146432
QQ: 8197376
Blog address:
Http://www.cnblogs.com/luckeryin/ (blog)
Http://blog.csdn.net/luckeryin (csdn)
MSN: luckeryin@163.com

Postscript
You are welcome to discuss with me about the "Print experts" issue.
I will release the latest "Print experts" in my csdn and blog ".
Registered users can download the latest free update version.

Conclusion

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.