Home > Products > CSHTMLDiff Control > Documentation > User Guide

DoDiff
Previous  Top  Next


 
Performs a diff operation between the Base and Revised input files.  
 
Syntax  
 
   Sub DoDiff()  
 
Remarks  
 
Performs a Diff operation on the input files (formerly set by BaseFile and RevisedFile properties).  
Calling DoDiff without setting the Base and Revised files will fail (and throw an exception).  
 
No method calls should be made after calling DoDiff and before the result is available on screen.  
IsReady can be used to determine when it is safe to call methods on the control. (see IsReady for full details)  
 
Note: In server sided applications it is advised to call the SetTempDir method after creating the control object. This method will create an alternative temp directory for the control, thus avoiding security access problems with the default temp directory.  
 
Example  
 
Private Sub DoDiff_Click()  
   ' set the base and revised files.  
    diffCtrl1.BaseFile = "C:\LastWeek\Report.html"  
   diffCtrl1.RevisedFile = "C:\ThisWeek\Report.html"  
   ' perform the diff.   
   diffCtrl1.DoDiff  
End Sub  
 
See Also  
 
   DiffFiles, DoDiffStreams, BaseFile, RevisedFile, Diff Specification, IsReady