Exemplo n.º 1
0
        static void MakeReport()
        {
            // report definition must be in the current directory:
            string dir = Path.GetDirectoryName(Process.GetCurrentProcess().MainModule.FileName);
            // use C1PrintDocument to generate the report:
            C1PrintDocument doc = new C1PrintDocument();

            doc.ImportC1Report(Path.Combine(dir, @"CommonTasks.xml"), @"01: Alternating Background (Greenbar report)");
            doc.Generate();
            doc.Export(Path.Combine(dir, "OutputFromSampleExternalExe.PDF"), new OutputRange(new int[] { 1, 2 }), false);
        }
Exemplo n.º 2
0
 public override void Load()
 {
     try
     {
         _doc = new C1PrintDocument();
         _doc.LongOperation += new LongOperationEventHandler(base.LongOperationHandler);
         _doc.ImportC1Report(FileName, ReportName);
     }
     catch
     {
         UnLoad();
         throw;
     }
 }