Question

J'ai une application VB.NET qui a été construite depuis un certain temps. J'ai récemment ajouté un code-barres dans les rapports actifs 6 à l'un des rapports.

Tout fonctionne bien sur ma machine ainsi que sur les autres, mais quelques privilégiés obtiennent une erreur relative aux éléments suivants:

MSCORLIB - La valeur ne peut pas être nul - Nom du paramètre: valeur

Le code est comme suit:

Dim rp As New ARPTSpecialOrderCard
CType(rp.Sections("pgDetails").Controls("labelVendorPhone"), DataDynamics.ActiveReports.Label).Text = Me.LabelVendorTelephone.Text
CType(rp.Sections("pgDetails").Controls("labelID"), DataDynamics.ActiveReports.Label).Text = Me.orderid.ToString
CType(rp.Sections("pgDetails").Controls("bcID"), DataDynamics.ActiveReports.Barcode).Text = Me.orderid.ToString
rp.Run()
frmARViewer.Viewer1.Document = rp.Document
frmARViewer.ShowDialog()

Texte d'exception:

> ************** Exception Text ************** System.ArgumentNullException: Value
> cannot be null. Parameter name: value 
> at
> System.Collections.CollectionBase.OnValidate(Object value)    at
> System.Collections.CollectionBase.System.Collections.IList.Add(Object value)    at
> DataDynamics.ActiveReports.Document.FontsCollection.Add(Font inFont)    at
> #f.#iZi.set_Font(Font value)    at
> DataDynamics.ActiveReports.Label.#Pvb(GraphicsCache cache, Page page, PointF pageOffset, Single startPos, Single endPos)    at
> DataDynamics.ActiveReports.ARControl.Render(GraphicsCache gRef, Page page, PointF pageOffset, Single startPos, Single endPos)    at
> DataDynamics.ActiveReports.Section.Render(GraphicsCache cache, Page page, #Ppb drawingLog, PointF pageOffset, Single pageWidth, Single drawStartPos, Single drawEndPos)    at
> DataDynamics.ActiveReports.Section.Render(GraphicsCache cache, #rqb rData, #Ppb drawingLog)    at
> #mb.#mqb.#LDb()    at
> #mb.#mqb.#SDb(Section section, Int32 insPos)    at
> #mb.#vqb.#vEb()    at
> #mb.#vqb.#qEb(Page newPage, Single left, Single top, Single right, Single bottom, UInt32 flags, UInt32& status) at
> DataDynamics.ActiveReports.ActiveReport.#4yb() at
> DataDynamics.ActiveReports.ActiveReport.Run(Boolean syncDocument)    at
> SpecialOrderSystem.soFRMViewOrder.pbPrintPO_Click(Object sender, EventArgs e)    at
> System.Windows.Forms.Control.OnClick(EventArgs e)    at
> System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)  at
> System.Windows.Forms.Control.WndProc(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)

Dois-je mettre à jour le mscorlib.dll sur la machine des utilisateurs? Je ne sais pas pourquoi cette erreur se produit.

Merci

Pas de solution correcte

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top