Home > Products > CSHTMLDiff Control > Documentation > User Guide

SaveResultAs
Previous  Top  Next


 
Save the current comparison result as an external file, optionally allowing offline navigation.  
 
Syntax  
 
Sub SaveResultAs(fileName As String, [InlineNavigation As Boolean = True])  
 
Parameters  
 
fileName  
The target HTML file name.  
 
InlineNavigation  
Optional. If True, offline-navigation scripts are incorporated into the target HTML file .  
 
Remarks  
 
Saves the current comparison results to a given output file. This file can later be viewed independently in a web-browser without having CSHTMLDiff control installed on the viewer's machine.  
When viewed in a web-browser, the output file will look the same as if the 2 input files were compared and viewed using the CSHTMLDiff control.  
 
Specifying InlineNavigation=True will cause the generated output file to contain an inline navigation script. When viewed in a web-browser, this script allows the user to navigate through the changes in a manner similar to the control's internal navigation abilities.  
 
This operation is available only after a valid call to DoDiff.  
     
Example  
 
Private Sub SaveResults_Click()  
' save the current results. skip offline-navigation support  
diffCtrl1.SaveResultAs "C:\Reports\Result.html", False  
     
End Sub  
 
See Also  
 
   FindNext, DoDiff, Reviewing Changes, Offline Support