Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need some Help

Status
Not open for further replies.

sara403

Technical User
Jun 10, 2008
58
IN
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
 
1. "Need some help" is a lousy title for a thread. Stop using it.
2. Debug your code by single stepping to find the line with the problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top