1
Answer

Crystal Reports

valreader

valreader

20y
1.7k
1
Hello, I am trying to write a report generator. I have a datatable being poulated and displayed on the screen. The next thing I need to do is turn the data in the datatable into a Crystal Report. Can someone point me in the direction or tell me how to create a crystal report dynamically. Thanks for helping me
Answers (1)
0
san

san

NA 19 0 16y
Here is the Code,

This goes as the primary output to the SetUp Project in the Install Node. This code calls Some.exe, I know this works because when I run EmptyProject.exe directly, it calls Some.exe without any problems. Only when I try to install the main application, I`m getting an exception.

These are the options i`m using InstallerClass - False [I`ve tried with True]
                                                    Argument  - [TARGETDIR] - [I`ve tried this being blank too]

Any idea of whats going wrong?

using System;
using System.Windows.Forms;
using System.Diagnostics;

namespace EmptyProject
{

    public class ClassEP
    {
        public static void Main(string[] args)
       

                ProcessStartInfo psi = new ProcessStartInfo();
                psi.FileName = "Some.exe";
                psi.WorkingDirectory = String.Join(" ",args);
                Process.Start(psi);
   
        }
    }
}
0
san

san

NA 19 0 16y
Snehal,
I doing primary output. But only the exe is being created and sent to the application folder and its not being executed.
Best,
San
0
snehal m

snehal m

NA 28 36.8k 16y
instead of adding files, u can add project output< primary output then the file get added instead of exe