Quantcast
Channel: SharpDevelop Community
Viewing all articles
Browse latest Browse all 1764

StartDocPrinter error

$
0
0

I have SD 4.4 running in Win 7 64.

I am calling report with this code and it was working fine, till I add a new report will print after, even disabling it, the error continues

 Engine = New ReportEngine()
   Engine.PrintPushDataReport("C:\tsp\TSFTcuponera\TSFTCupones\Cuponera.srd",dt)
   Engine = Nothing

I have tried, disabling XPS printer I am using to test and enabling it again, I change permisison folders, I disabel  advanced printer features, and many ideas I found googling.

I am printing just 2 pages report, I checked Disk for error, to conisder emmory or file damages, but nothing, it still cotnue the error.

It seems the report is been sent and can not be closed. There is no error en Event Viewer too.  

 

The message say:

System.ComponentModel.Win32Exception: No se realizó una llamada a StartDocPrinter

   en System.Drawing.Printing.StandardPrintController.OnEndPrint(PrintDocument document, PrintEventArgs e)

   en System.Windows.Forms.PrintControllerWithStatusDialog.OnEndPrint(PrintDocument document, PrintEventArgs e)

   en System.Drawing.Printing.PrintController.Print(PrintDocument document)

   en System.Drawing.Printing.PrintDocument.Print()

   en ICSharpCode.Reports.Core.ReportEngine.ReportToPrinter(AbstractRenderer renderer, IReportModel model)

   en ICSharpCode.Reports.Core.ReportEngine.PrintPushDataReport(String fileName, DataTable dataTable, ReportParameters reportParameters)

   en ICSharpCode.Reports.Core.ReportEngine.PrintPushDataReport(String fileName, DataTable dataTable)

   en TSFTCupones.MainForm.Button1Click(Object sender, EventArgs e)

   en System.Windows.Forms.Control.OnClick(EventArgs e)

   en System.Windows.Forms.Button.OnClick(EventArgs e)

   en System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)

   en System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

   en System.Windows.Forms.Control.WndProc(Message& m)

   en System.Windows.Forms.ButtonBase.WndProc(Message& m)

   en System.Windows.Forms.Button.WndProc(Message& m)

   en System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

   en System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

   en System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

   en System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)

   en System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)

   en System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)

   en System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)

   en System.Windows.Forms.Application.Run(ApplicationContext context)

   en Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()

   en Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()

   en Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[ commandLine)

   en TSFTCupones.My.MyApplication.Main(String[ Args)

 


Viewing all articles
Browse latest Browse all 1764

Trending Articles