<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2656.83">
<TITLE>XEP.NET v3 developer - dot net c# example won't compile</TITLE>
</HEAD>
<BODY>
<BR>
<BR>
<P><FONT SIZE=2>I have successfully downloaded & installed XEP.NET v3 developer</FONT>
</P>
<P><FONT SIZE=2>I tried to build the two c# examples - one worked (XmlXslToPdf), the other (FoToPdf) fails with a compile error:</FONT>
</P>
<P><FONT SIZE=2>FoToPdf.cs(69,5): error CS1502: The best overloaded method match for</FONT>
<BR><FONT SIZE=2> 'Renderx.Xep.Formatter.Format(string, System.Xml.XmlReader,</FONT>
<BR><FONT SIZE=2> System.IO.Stream, string, System.Collections.Hashtable,</FONT>
<BR><FONT SIZE=2> Renderx.Xep.Logger.Logger)' has some invalid arguments</FONT>
<BR><FONT SIZE=2>FoToPdf.cs(69,54): error CS1503: Argument '2': cannot convert from 'string' to</FONT>
<BR><FONT SIZE=2> 'System.Xml.XmlReader'</FONT>
</P>
<P><FONT SIZE=2>The source line in question (line 69) is:</FONT>
</P>
<P> <FONT SIZE=2>formatter.Format(Path.GetDirectoryName(sFoFile), sFoFile, outPdf, </FONT>
<BR> <FONT SIZE=2>Renderx.Xep.Formatter.OUTPUT_PDF, null, null);</FONT>
</P>
<P><FONT SIZE=2>I can see from the Microsoft disassembler than the source code method signature doesn't match any of the overloads for this method.</FONT></P>
<P><FONT SIZE=2>I tried reformatting the method call as best I could to match any method signature, e.g.</FONT>
</P>
<P> <FONT SIZE=2>formatter.Format(Path.GetDirectoryName(sFoFile), outPdf, sFoFile,</FONT>
<BR> <FONT SIZE=2>props, null);</FONT>
</P>
<P><FONT SIZE=2>This compiles, but bombs at run time</FONT>
</P>
<P><FONT SIZE=2>Any help would be appreciated!</FONT>
</P>
<P><FONT SIZE=2>Thanks</FONT>
</P>
<P><FONT SIZE=2>David Laub</FONT>
</P>
</BODY>
</HTML>