The steps I did to get "this" far:
1.) Install the printer via install.exe
2.) Register the dll into my system via regsvr32
3.) Enter the Licensee + the LicCode into the Printers "About" Page in Windows
4.) Changed the LicCode + Licensee in the used Declaration.cs Class
Here is my Code, for the "Print" Button on my WinForm:
Code: Select all
private void button1_Click(object sender, EventArgs e)
{
cdiNet = new CDIntf.CDIntfControl();
cdiNet.DriverInit(Declarations.PrinterName);
cdiNet.EnablePrinter(Declarations.LicensedTo, Declarations.ActivationCode);
cdiNet.FileNameOptions = Declarations.NoPrompt;
cdiNet.DefaultFileName = outputNet;
CrystalReport2 report = new CrystalReport2();
report.PrintOptions.PrinterName = Declarations.PrinterName;
report.PrintToPrinter(1, false, 0, 0);
cdiNet.FileNameOptions = 0;
}
& this Error after I click OK "Win32Exception was not treated - Device not ready"@ line:
Code: Select all
report.PrintToPrinter(1, false, 0, 0);
Any help would be awesome...as I feel, that I am losing my mind.
Thanx for the Effort.
Greets,
GHughes