Internal Software Error when trying to print network

   
  Applies To 
   
  Product(s): Bentley WaterCAD
  Version(s): 08.09.40.34, 08.11.03.19
  Environment:  N/A
  Area:  Other
  Subarea: 
  Original Author: Terry Foster, Bentley Technical Support Group
   

 

 

Error or Warning Message

When user tries to print network, he gets an internal software error with the details below.

Explanation

System.ArgumentException: Parameter is not valid.

   at System.Drawing.Graphics.ScaleTransform(Single sx, Single sy, MatrixOrder order)
   at Haestad.GraphicsLibrary.GDI.Support.GraphicsWrapper.ScaleTransform(Single x, Single y, MatrixOrder order)
   at Haestad.GraphicsLibrary.GDI.GDIPrimitiveDrawing.DrawStrings(IFontInfo fontInfo, IntPtr text, IntPtr coords, IntPtr rotations, IntPtr scales, IntPtr colors, IntPtr lengths, Int32 numStrings, IntPtr isVisibles, Double scaleX, Double scaleY, IntPtr translations, GeometryPoint[] offsets, IntPtr isSelecteds, Boolean ignoreGlobalSelectionOffset, IntPtr localSelectionOffsets)
   at Haestad.GraphicsLibrary.GDI.GDIPrimitiveDrawing.DrawStrings(IFontInfo fontInfo, IntPtr text, IntPtr coords, IntPtr rotations, IntPtr scales, IntPtr colors, IntPtr lengths, Int32 numStrings, IntPtr isVisibles, Double scaleX, Double scaleY, IntPtr translations, IntPtr isSelecteds)
   at Haestad.GraphicsLibrary.GDI.GDIVectorFileDrawingHelper.DrawStrings(UInt32 textDrawingId, IFontInfo fontInfo, Boolean useReorderedCharactersIfAvailable)
   at Haestad.Drawing.Windows.Forms.Components.GLDrawingControl.DrawVectorBackgroundLayers(BackgroundLayerDefinitionData backgroundLayer, BackgroundLayerType layerType, IDevice device, IFontInfo fontInfo)
   at Haestad.Drawing.Windows.Forms.Components.GLDrawingControl.DrawBackgroundLayers(IDevice device, IFontInfo fontInfo)
   at Haestad.Drawing.Windows.Forms.Components.GLDrawingControl.RedrawCore(Boolean useScissorBox, IDevice device, IFontInfo fontInfo)
   at Haestad.Drawing.Windows.Forms.Components.GLDrawingControl.CreateMetafiles(SizeF sizeInInches, Boolean scaleToFit, Boolean keepMetafilesOpen, IProcessInProgressEx processInProgress)
   at Haestad.Drawing.Drawing.GetMetafiles(SizeF sizeInInches, Boolean scaleToFit, Boolean keepMetafilesOpen, IProcessInProgressEx processInProgress)
   at Haestad.Drawing.Control.Application.NetworkScaledPrintPreviewReportFormModel.GetNetworkImages(SizeF sizeInInches, Boolean scaleToFit, Boolean keepImagesOpen, IProcessInProgressEx progress)
   at Haestad.Drawing.Control.Adapting.NetworkScaledPrintPreviewReportModel.SetupDrawing()
   at Haestad.Drawing.Control.Adapting.NetworkScaledPrintPreviewReportModel.Detail_BeforePrint(Object sender, PrintEventArgs e)
   at DevExpress.XtraReports.UI.XRControl.OnBeforePrint(PrintEventArgs e)
   at DevExpress.XtraReports.UI.Band.GenerateContent(DocumentBand docBand, Int32 rowIndex, Boolean fireBeforePrint)
   at DevExpress.XtraReports.UI.Band.GenerateWithSubreports(DocumentBand docBand, Int32 rowIndex, Boolean fireBeforePrint, PageBuildInfo pageBuildInfo)
   at DevExpress.XtraReports.Native.SelfGeneratedDocumentBand..ctor(RootDocumentBand root, DocumentBandKind kind, Band band, Int32 rowIndex, Boolean fireBeforePrint, PageBuildInfo pageBuildInfo)
   at DevExpress.XtraReports.UI.Band.CreateDocumentBand(Int32 rowIndex, RootDocumentBand rootDocBand, PageBuildInfo pageBuildInfo)
   at DevExpress.XtraReports.UI.DetailBand.CreateDocumentBand(Int32 rowIndex, Int32 rowCount, RootDocumentBand rootDocBand, PageBuildInfo pageBuildInfo)
   at DevExpress.XtraReports.Native.Printing.DetailWriterBase.WriteDetailCore(PageBuildInfo pageBuildInfo)
   at DevExpress.XtraReports.Native.Printing.DetailWriterBase.Write(DocumentBand rootBand, PageBuildInfo pageBuildInfo)
   at DevExpress.XtraReports.Native.Printing.DocumentBuilder.GetBand(DocumentBand rootBand, PageBuildInfo pageBuildInfo)
   at DevExpress.XtraPrinting.Native.DocumentBand.GetBand(Int32 index, RectangleF bounds, PointF offset, Boolean forNextPage)
   at DevExpress.XtraPrinting.Native.DocumentBand.GetBand(Int32 index)
   at DevExpress.XtraPrinting.Native.BuildInfoContainer.GetDetailContainer(DocumentBand rootBand, PageRowBuilderBase pageRowBuilderBase, RectangleF bounds)
   at DevExpress.XtraPrinting.Native.PageHeaderFooterRowBuilder.GetHeaderRowIndex(DocumentBand rootBand)
   at DevExpress.XtraPrinting.Native.PageHeaderFooterRowBuilderBase.FillPageHeader(DocumentBand rootBand, RectangleF bounds)
   at DevExpress.XtraPrinting.Native.PageHeaderFooterRowBuilderBase.FillReportDetailsAndFooter(DocumentBand rootBand, RectangleF bounds)
   at DevExpress.XtraPrinting.Native.PageRowBuilderBase.FillPage(DocumentBand rootBand, RectangleF bounds)
   at DevExpress.XtraPrinting.Native.PageBuildEngine.Build(Boolean shoulAddPages)
   at DevExpress.XtraPrinting.Native.PageBuildEngine.BuildPages(DocumentBand rootBand, ReadonlyPageData pageData, RectangleF usefulPageRect, Boolean shoulAddPages)
   at DevExpress.XtraPrinting.Native.PageBuildEngine.BuildPages(DocumentBand rootBand, PrintingDocument document, PrintingSystem ps)
   at DevExpress.XtraPrinting.Native.PrintingDocument.BuildPagesCore()
   at DevExpress.XtraPrinting.Native.PrintingDocument.DocumentHelper.BuildPages()
   at DevExpress.XtraPrinting.Native.PrintingDocument.BuildPages()
   at DevExpress.XtraPrinting.Native.PrintingDocument.End(Boolean buildPagesInBackground)
   at DevExpress.XtraPrinting.PrintingSystem.End(Boolean buildPagesInBackground)
   at DevExpress.XtraReports.UI.XtraReport.CreateDocumentCore2(PrintingSystem ps, Single progressRange, Boolean buildPagesInBackground)
   at DevExpress.XtraReports.UI.XtraReport.CreateDocumentCore(Single progressRange, Boolean buildPagesInBackground)
   at DevExpress.XtraReports.UI.XtraReport.CreateDocument(Single progressRange, Control printControl, Boolean buildPagesInBackground)
   at DevExpress.XtraReports.UI.XtraReport.CreateIfEmpty(Single progressRange, Boolean buildPagesInBackground)
   at DevExpress.XtraReports.UI.XtraReport.PrintDialog()
   at Haestad.Drawing.Control.Application.NetworkScaledPrintPreviewReportFormModel.PrintReport(Graphics agraphics, Boolean showPrintDialog)
   at Haestad.Drawing.Control.Application.NetworkScaledPrintPreviewReportFormModel.PrintReport(Graphics agraphics)
   at Haestad.Idaho.Application.IdahoParentFormUIModel.PrintDrawing(Object data)
   at Haestad.Idaho.Application.IdahoParentFormUIModel.ExecuteCommand(CommandType type, Object data)
   at Haestad.Drawing.Control.Forms.GraphicalDrawingParentForm.menuButtonItemFilePrintFitToPage_Activate(Object sender, EventArgs e)
   at TD.SandBar.ToolbarItemBase.OnActivate()
   at TD.SandBar.ButtonItemBase.OnActivate()
   at TD.SandBar.xf92605a24a69622a.x0ef5a9135fb0040c(TopLevelMenuItemBase xccb63ca5f63dc470, Boolean x674341222c6bbaba, Boolean x37b4525011735d95, Point x13d4cb8d1bd20347)
   at TD.SandBar.TopLevelMenuItemBase.Show(Boolean select)
   at TD.SandBar.TopLevelMenuItemBase.Show()
   at Haestad.Drawing.Control.Forms.GraphicalDrawingParentForm.dropDownMenuItemFilePrint_Activate(Object sender, EventArgs e)
   at TD.SandBar.ToolbarItemBase.OnActivate()
   at TD.SandBar.ButtonItemBase.OnActivate()
   at TD.SandBar.ToolBar.OnItemRelease(ToolbarItemBase item, Point position)
   at TD.SandBar.ToolBar.OnMouseUp(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at TD.SandBar.ToolBar.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.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

File:             C:\Program Files (x86)\Bentley\WaterCAD\WaterCAD.exe

How to Avoid

Option 1 

  1. Temporarily disable or remove the contours or background layer.  If the project involves contours you could try playing with the increment and index values as it seems only certain values will cause this error to occur.  If the project involves a .dxf file, sometimes it was found helpful to recreate this file and bring it back in again and the error might not occur.

 

Option 2 

  1. Another option would be to just take a screen shot of whatever you are trying to
    print and open it in a picture editor like MS Paint and print from there. If you
    are a SELECT customer you can upgrade to the newest version where this problem
    has been fixed.

See Also

 

  • Created by
  • When: Tue, Aug 27 2013 1:02 PM
  • Last revision by
  • When: Thu, Jul 23 2015 10:36 AM
  • Revisions: 3
  • Comments: 0
Anonymous
Recommended
Related