protected Receipt oReceipt;
Where the error occurs:mmSaveDataResult result = this.Save(this.oReceipt, this.dsReceipt, this.oReceipt.TableName); if (result == mmSaveDataResult.RulesPassed) { LocalReport report = new LocalReport(); report.ReportPath = "ReceiptPrint.rdlc"; this.oReceipt.GetReceiptByPKForPrint(this.oReceipt.Entity.ReceiptPK); DataSet dsReceipt = oReceipt.DataSet; // (DataSet)Session["dsReceipt"]; report.DataSources.Add(new ReportDataSource("ReceiptPrint_Receipt", dsReceipt.Tables[0])); Reporting oPrint = new Reporting(); oPrint.Export(report); oPrint.m_currentPageIndex = 0; oPrint.Print(); ...>Frank,
Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints. >>Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. >> >>Exception Details: System.Data.ConstraintException: Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints. >> >>Source Error: >> >>Line 44: public ReceiptEntity GetReceiptByPKForPrint(Guid receiptPK) >>Line 45: { >>Line 46: return this.GetEntity("ReceiptsSelectByPKForPrint", >>Line 47: this.CreateParameter("@ReceiptPK", receiptPK)); >>Line 48:>>