Re: [xep-support] XEP.NET v3 developer - dot net c# example won't compile

From: Alexander Peshkov (peshkov@renderx.com)
Date: Mon Jul 19 2004 - 01:42:33 PDT

  • Next message: Alexander Peshkov: "Re: [xep-support] PDF annotations"

    Hello David,

    Thanks for your report, we will check this out.

    Best regards,
    Alexander Peshkov mailto:peshkov@renderx.com
    RenderX

    DWc> I have successfully downloaded & installed XEP.NET v3 developer

    DWc> I tried to build the two c# examples - one worked (XmlXslToPdf), the other
    DWc> (FoToPdf) fails with a compile error:

    DWc> FoToPdf.cs(69,5): error CS1502: The best overloaded method match for
    DWc> 'Renderx.Xep.Formatter.Format(string, System.Xml.XmlReader,
    DWc> System.IO.Stream, string, System.Collections.Hashtable,
    DWc> Renderx.Xep.Logger.Logger)' has some invalid arguments
    DWc> FoToPdf.cs(69,54): error CS1503: Argument '2': cannot convert from 'string'
    DWc> to
    DWc> 'System.Xml.XmlReader'

    DWc> The source line in question (line 69) is:

            
    DWc> formatter.Format(Path.GetDirectoryName(sFoFile), sFoFile, outPdf,
    DWc> Renderx.Xep.Formatter.OUTPUT_PDF,
    DWc> null, null);

    DWc> I can see from the Microsoft disassembler than the source code method
    DWc> signature doesn't match any of the overloads for this method.

    DWc> I tried reformatting the method call as best I could to match any method
    DWc> signature, e.g.

            
    DWc> formatter.Format(Path.GetDirectoryName(sFoFile), outPdf, sFoFile,
    DWc> props, null);

    DWc> This compiles, but bombs at run time

    DWc> Any help would be appreciated!

    DWc> Thanks

    DWc> David Laub

    -------------------
    (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
    in the body of the message to majordomo@renderx.com from the address
    you are subscribed from.
    (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



    This archive was generated by hypermail 2.1.5 : Mon Jul 19 2004 - 01:58:13 PDT