Print Reports and Change Layout
2 min
there are three ways to print a report that is currently being displayed in the browser press the p key on your keyboard click the printer icon on the toolbar select print from the file menu activate a new printer note before you continue with the procedure below, close dairycomp if the printer has already been installed (per step 1), close and reopen the program follow the steps below to activate and test a newly installed printer confirm that the printer is installed correctly by checking your printers and scanners settings in windows (see example below) make sure the printer is installed correctly, according to the instructions that came with the printer run the cd or download the printer drivers if necessary once the printer is installed, open dairycomp and type in the command line to open the window select the printer tab in the window, and select the new printer in the drop‑down under printer after you select the new printer, you can test it by clicking the test printer button \<font color="#67854e">recommended \</font> restart dairycomp after making changes to the printer options if printing is enabled through the command or by toggling the prt option in the status line to prt on , reports created by the command automatically print when they are generated reports created with the command display on the grid and report pages click here to set up a report to print by default in the command line, type then, press the enter key to open the options window select the commands option to open the 3 command abbreviations window double click a command using the action verb dairycomp displays a pop up window for the command in the content field, replace with click ok to confirm the replacement the stored abbreviation window confirms the change was successful click ok to return to the 3 command abbreviations window you can also change the way reports display on screen and in print using various switches and syntax see the topics below to learn more display reports in multiple columns to have your reports display in multiple columns, add the "page mode" \<font color="#eab308">\p\</font> switch to a or command for example, for >3 \p creates a report that looks like this you can also control the number of columns by adding the desired number of columns to the \p switch, as in for >3 \p3 dairycomp automatically decides how many columns can be printed based on the length of the report and whether or not the report is compressed (using the \c switch; see how do i print a compressed report? docid\ wtyclhirnvx1r 87xceay to learn more) specify field widths you can change the way and reports display by specifying field widths for items to do so, enter the item code in the command line followed by a colon ( ) and the amount of spaces you want the data displayed within let's look at an example \<font color="#6b7280">\</font> \<font color="#f97316"> 6 \</font> \<font color="#f97316"> 4\</font> \<font color="#f97316"> 2\</font> this command returns the fresh date ( ) of animals in three columns, all with different widths (6, 4, and 2) sometimes, you'll want to shorten the length of a field to save space in your report this can be helpful with the dim (days in milk) item, which normally displays in five (5) spaces but almost never requires that much space in this case, you can shorten the dim item in your reports to three spaces \<font color="#6b7280">\</font> \<font color="#f97316"> 3\</font> when you specify a field width for an item, then any results that would normally need more spaces than the number of spaces specified will show as an asterisk ( ) for example, if you enter the following command, you're telling the system to display dim in both three and two spaces \<font color="#6b7280">\</font> \<font color="#f97316"> 3\</font> \<font color="#f97316"> 2\</font> in this case, you can see that dim values that require three spaces (e g , 579, 767) show properly in the first column, but show as an asterisk in the second column you can also add underlines to results (as a visual separator, for instance) by specifying a width greater than 100 any spaces you specify over 100 control the width of the underline therefore, if you enter the following command \<font color="#6b7280">\</font> \<font color="#eab308"> 108\</font> \<font color="#6b7280">\</font> you're telling the system to display the item as an underline, and telling it to make the underline eight (8) spaces wide