Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • We have a XtraReport that sometimes crashes when calling the CreateDocument() method. This seems to be related to the report's Name property. An example for a name that causes a crash is:
                                                   report.Name = "Angebot - NagNag AG Consulting Services - A10081";
                                                   report.CreateDocument();
                                    (just a test name)

                                    A name that does not cause the crash is for example (using the same report and data):
                                                   report.Name = "Test";
                                                   report.CreateDocument();

                                    The name is important for us, because it gets the preset file name when printing using a document writer printer. We need a possibility to set this filename and are curious about this nebulous exception.

                                    Steps to Reproduce:

                                    I guess any report will do, using an unsuitable report name.

                                    Actual Results:

                                    System.Exception was unhandled

                                      Message="There are following errors in script(s):\r\nc:\\Documents and Settings\\Michael\\Local Settings\\Temp\\9guebaog.0.cs(26,62): error CS1002: ; expected\r\nc:\\Documents and Settings\\Michael\\Local Settings\\Temp\\9guebaog.0.cs(26,74): error CS1002: ; expected\r\nc:\\Documents and Settings\\Michael\\Local Settings\\Temp\\9guebaog.0.cs(26,106): error CS1002: ; expected\r\nc:\\Documents and Settings\\Michael\\Local Settings\\Temp\\9guebaog.0.cs(26,114): error CS1519: Invalid token ';' in class, struct, or interface member declaration\r\n"

                                      Source="DevExpress.XtraReports.v7.2"

                                      StackTrace:

                                           at DevExpress.XtraReports.UI.XtraReport.OnBeforePrint(PrintEventArgs e)

                                           at DevExpress.XtraReports.UI.XtraReport.CreateDocument(Single progressRange)

                                           at DevExpress.XtraReports.UI.XtraReport.CreateDocument()

                                           at Netoption_ERP_2006.Orders.OrderScreen.PrintReport(XtraReport report, Boolean preview, OrderDataSet orderData) in C:\Documents and Settings\Michael\My Documents\Visual Studio 2005\Projects\Netoption ERP 2006\trunk\Netoption ERP 2006.Orders\OrderScreen.cs:line 621

                                           at Netoption_ERP_2006.Orders.OrderScreen.PrintOrder(Boolean preview) in C:\Documents and Settings\Michael\My Documents\Visual Studio 2005\Projects\Netoption ERP 2006\trunk\Netoption ERP 2006.Orders\OrderScreen.cs:line 610

                                           at Netoption_ERP_2006.Orders.OrderScreen.printPreviewContextButton_Click(Object sender, EventArgs e) in C:\Documents and Settings\Michael\My Documents\Visual Studio 2005\Projects\Netoption ERP 2006\trunk\Netoption ERP 2006.Orders\OrderScreen.cs:line 384

                                           at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)

                                           at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)

                                           at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)

                                           at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)

                                           at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)

                                           at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)

                                           at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)

                                           at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)

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

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

                                           at System.Windows.Forms.ScrollableControl.WndProc(Message& m)

                                           at System.Windows.Forms.ToolStrip.WndProc(Message& m)

                                           at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)

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

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

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

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

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

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

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

                                           at System.Windows.Forms.Application.Run(Form mainForm)

                                    Expected Results:

                                    CreateDocument() should not fail.

                                0

                                Hi Daniel,

                                The Report.Name property should be under naming convention like any winform control.
                                It's impossible to use the spaces, brackets e.t.s. in the control name property.

                                Thanks,
                                Andrew

                                To start a chat you should create a support ticket


                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2014 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners