Print pdf files

Posted by: devcode.ou on 23 January 2024, 2:13 am EST

  • Posted 23 January 2024, 2:13 am EST

    Hi, i have this problem when i try to print pdf files,

    i think the problem is about dll version.

    C1PdfDocumentSource pdfDocumentSource = new C1PdfDocumentSource();
    pdfDocumentSource.LoadFromFile(path_file);
    var localPrintServer = new LocalPrintServer();
    var printQueue = localPrintServer.GetPrintQueue(printer_name);
    var printoptions=new C1PrintOptions();
    printoptions.PrintQueue = printQueue ;
    pdfDocumentSource.Print(printoptions);
    1. In a simple application everything works, I installed only the wpf library (c1.wpf.document)

      last version (8.0.20233.702) and the active report dependencies automatically installed are 5.2.0.800 version

    2. In the real application i have both wpf and active reports library (last version)

      wpf (8.0.20233.702) and active reports (17.2.2), here i receive the error “Object reference not set to an instance of an object”

    can you confirm that the problem is the active report dll version ?

    and eventually help me to manage these two versions needed ?

    Thanx

  • Posted 23 January 2024, 10:56 pm EST

    Hi,

    Thanks for reaching out to us with your query.

    C1.WPF.Document 8.0.20233.702 has a dependency Grapecity.Documents.Imaging.5.2.0.800. And ActiveReports 17.2.2 requires dependency GrapeCity.Documents.Imaging (>= 6.2.4 && < 7.0.0) Which has conflict between them(C1 and AR).

    You can’t use them in the same project. If you are using C1.WPF.Document 8.0.20233.702 then you have to include Active Report 16.2.0 or less version. There will be no issues. Please try to include Active Report 16.2.0 to get rid of any conflict issues.

    Best Regards,

    Nitin

  • Posted 24 January 2024, 9:44 pm EST

    Hi

    this is not great solution, it can be also a license problem,

    but in any case i bought the last version of both your technologies and it is very “strange” situation that i cant use them together.

    About the pdf print i can find a solution.

    Thanx

  • Posted 28 January 2024, 11:15 pm EST

    Hi,

    Apologize for the inconvenience. We are discussing this with the development team. Will let you know once we have any update from them. [Internal Tracking Id - C1XAML-35568]

    Best Regards,

    Nitin

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels