Hi
job to do:
1 fixing a printer drive (is hard coded)
2 pass the print command for the fixed printer driver
i developed the code for doing the above said, is shown below
while executing the specified dll through source code it works fine, but after we create setup and install, when we execute thought it, it is not responding.
pls provide me some suggestions
ACCPAC.Advantage.PrintSetup rptPrintSetup;
rptPrintSetup = session.GetPrintSetup(" ", " ");
// rptPrintSetup.DeviceName = "PrimoPDF";
// rptPrintSetup.OutputName = "PrimoPort:";
// rptPrintSetup.DeviceName = "PDF995";
// rptPrintSetup.OutputName = "PDF995PORT:";
// rptPrintSetup.DeviceName = "pdfFactory Pro";
// rptPrintSetup.OutputName = "FPP3:";
rptPrintSetup.DeviceName = "pdfFactory";
rptPrintSetup.OutputName = "FPP2:";
//rptPrintSetup.PrintDirectory = "C:\\test";
//rptPrintSetup.Destination = ACCPAC.Advantage.PrintDestination.File;
rptPrintSetup.Orientation = 1;
rptPrintSetup.PaperSize = 1;
rptPrintSetup.PaperSource = 15;
rpt.PrinterSetup(rptPrintSetup);
rpt.SetParam("DEBITCREDIT", "DBN"); // Report parameter: 0
rpt.SetParam("SORTBY", "1");
rpt.NumberOfCopies = 1;
rpt.Destination =ACCPAC.Advantage.PrintDestination.Printer;
rpt.PrintDirectory = "";
rpt.Print();
session.Dispose();
Thanks
Saravanan
job to do:
1 fixing a printer drive (is hard coded)
2 pass the print command for the fixed printer driver
i developed the code for doing the above said, is shown below
while executing the specified dll through source code it works fine, but after we create setup and install, when we execute thought it, it is not responding.
pls provide me some suggestions
ACCPAC.Advantage.PrintSetup rptPrintSetup;
rptPrintSetup = session.GetPrintSetup(" ", " ");
// rptPrintSetup.DeviceName = "PrimoPDF";
// rptPrintSetup.OutputName = "PrimoPort:";
// rptPrintSetup.DeviceName = "PDF995";
// rptPrintSetup.OutputName = "PDF995PORT:";
// rptPrintSetup.DeviceName = "pdfFactory Pro";
// rptPrintSetup.OutputName = "FPP3:";
rptPrintSetup.DeviceName = "pdfFactory";
rptPrintSetup.OutputName = "FPP2:";
//rptPrintSetup.PrintDirectory = "C:\\test";
//rptPrintSetup.Destination = ACCPAC.Advantage.PrintDestination.File;
rptPrintSetup.Orientation = 1;
rptPrintSetup.PaperSize = 1;
rptPrintSetup.PaperSource = 15;
rpt.PrinterSetup(rptPrintSetup);
rpt.SetParam("DEBITCREDIT", "DBN"); // Report parameter: 0
rpt.SetParam("SORTBY", "1");
rpt.NumberOfCopies = 1;
rpt.Destination =ACCPAC.Advantage.PrintDestination.Printer;
rpt.PrintDirectory = "";
rpt.Print();
session.Dispose();
Thanks
Saravanan