Hi Toby. Yes, this sounds like something you could accomplish with a BeforePrint script . On a template based on a BOM template, you would bind the cell or label where the DeviceTag / user6 value is to appear to a BeforePrint script that would look something like this: private void xrLabel2_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e) { string pn = "", u6 = "", tag = ""; if (GetCurrentColumnValue("partnumber") != DBNull.Value) pn = (string)GetCurrentColumnValue("partnumber"); if (GetCurrentColumnValue("user6") != DBNull.Value) u6 = (string)GetCurrentColumnValue("user6"); if (GetCurrentColumnValue("DeviceTag") != DBNull.Value) tag = (string)GetCurrentColumnValue("DeviceTag"); if (pn == "XA110") (sender as XRLabel).Text = u6; else (sender as XRLabel).Text = tag; } See the Before Print scripts for report templates article for details on where to paste in the script and how to bind it to the cell/label. You may need to add some "else if" lines for additional behavior for other part numbers. communities.bentley.com/.../Toby.zip
↧