- Welcome, Guest. Please Login or Register
MindFusion  
  We have released initial version of MindFusion.JavaScript pack. It includes chart, diagram, calendar, map, virtual keyboard, gauge and UI components. Here are more details and live demo for anyone interested.  
  HomeHelpSearchLoginRegister   
     
     
   
 
Page Index Toggle Pages: 1 Send Topic Print  
DocumentViewer's search function does not work
Read 3791 times

luolishuang   Offline
YaBB Newbies
*
Posts: 40
I Love MindFusion!


   
     
 
DocumentViewer's search function does not work
May 3rd, 2013 at 3:41am
 
The lower left corner of the search function in DocumentViewer can not be used,Can this be solved??
 
 
 
IP Logged    
 
     

Meppy   Offline
YaBB Moderator
*****
Posts: 1783
Gender: male
MindFusion support


   
     
 
Re: DocumentViewer's search function does not work
Reply #1 - May 3rd, 2013 at 7:01am
 
Hi,

The WPF DocumentViewer's search function do not appear to work with FixedDocument documents. You can convert the FixedDocument created by MindFusion.Reporting to an XPS document and show this XPS document in the viewer. The following method can help you convert FixedDocument objects to XPS:

Code:
private IDocumentPaginatorSource FixedToXps(FixedDocument doc)
{
	var stream = new MemoryStream();
	var documentUri = new Uri("pack://document.xps");
	var p = Package.Open(stream, FileMode.Create, FileAccess.ReadWrite);
	PackageStore.AddPackage(documentUri, p);

	var xpsDoc = new XpsDocument(p, CompressionOption.NotCompressed, documentUri.AbsoluteUri);

	var dw = XpsDocument.CreateXpsDocumentWriter(xpsDoc);
	dw.Write(doc);

	return xpsDoc.GetFixedDocumentSequence();
} 


Note, that you need to add references to ReachFramework.dll and System.Printing.dll assemblies in order to compile this method.

Regards,
Meppy
 
 
 
IP Logged    
 
     
Page Index Toggle Pages: 1 Send Topic Print