Home >  Products >  Compare It! 3 >  Online Help
Welcome to Compare It!
About Compare It!
Installing and Removing Compare It!
What's New in This release?
Quick Start
User Interface Basics
Application Window Illustration
Using Compare It!
Comparing files
Merging Files
Editing Files
Setting Options
General
File Filters
Comparison
Advanced Comparison
Editor
Colors
Language
Keyboard
Converters
Viewers
Printing and Reporting
Print options
Print Options: Margins
Print Options: Advanced
Comparison report
Comparison statistics
Keyboard Shortcuts, Toolbar Buttons, Menu Commands
Advanced Functions
Adding Shortcuts to External Applications
Adaptive comparison
Auto Backup
Automatch rules
Command Line Usage
Configuration File
Changes Only Mode
Custom Syntax Files
Defining Column Ranges
Enhanced Open File
File lists support
Folders comparison
Ignore Difference
Manual Matching
Merged Report
Moved Sections
Partial matching
Profiles
Result File Support
Separate
Unicode Support
Using Compare It! with File Manager
Using fixed/alternative font
Using Regular Expressions
Using RegExps substrings
Word files comparison
Excel files comparison
Other file formats support
Zip File Support
General Information
What is Shareware?
How To Register
Warranty and License
Future Releases
Other Products
Frequently Asked Questions
Updates and Support
Using merged report Manual Matching Moved Sections

Merged report is a special report type, which can be used to combine parts of compared files in resulting text file. Sample usages include extraction of same part, automatic merging according to single rule, etc.

Structure of Merged report


Merged report is a plain text file, which includes specified portions of original files. When generating such report, Compare It! splits original files to following parts and sections according to comparison result:

Left File:[same][diff][same]--[same][left]...
Right File:[same][diff][same][right][same]--...
 [ sect.  1  ][ sect.   2   ][ sect.  3  ]...

Combination of same and following changes blocks is refered as section. Note that first section of a file can consist of single changes block (in case file is beginning with changes); similarly, if file ends with same line, last section will include only one same block.

To configure Merged report, you specify which blocks and in which order to include in report for each section. Here is description of all blocks you can combine:
Same text [S]Same section - block of text between two changes
Source diff [L]Changes block from source(left) file
Target diff [R]Changes block from target(right) file
Source only [A]Block which only exist in source file
Target only [B]Block which only exist in target file
Letter in brackets is used for command line, see below.

The report generation is simple: Compare It! scans compared files, and for each section copies selected lines to report file.

Using command line to generate Merged report


As all other report types, Merged report can be generated with command line, without user interaction. To make a report with already configured options, simply call
wincmp3.exe file1 file2 /G:M report_file .

But you can also specify configuration in command line by using shortcuts described in table:
wincmp3.exe file1 file2 /G:M+SLAB report_file .

Let's see what will make this call:

  1. Same lines are included in report (S);
  2. From 2 changes blocks, only left(source) part is copied (L), right block is discarded;
  3. When encountering source-only block, it is copied to report (A);
  4. Target-only block is also copied to report (B).

As result, report file is just source file, with "target-only" lines added.

See also:
 Using command line
© 1996-2009, Grig Software, All Rights Reserved Manual Matching Moved Sections
Browser Based Help. Published by chm2web software.