how to remove logon information which is applied to crystal report after prining the report

V

Venkatesha R

Hi All,
Iam creating the report object then applying the logon information to the
database which the report uses then printing it in printer and finally
disposing the report object . after this iam trying to compress the database
which is used by the report object. but the program says "couldnot open the
database. it is exclusively opened by the user" .please give me some
solution for this.
here is my printing report code.
LBL003 objRptLBL003 = new LBL003();

setLogoOnInformation(objRptLBL003);

objRptLBL003.PrintOptions.PrinterName = "";

objRptLBL003.PrintToPrinter(_intPrintCopies,false,1,1); // if i comment
this line my compress database program works otherwise not

objRptLBL003.Dispose();



thanks,

Venkatesha R
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top