Index
Printing A UB-04 Form
To print data on a UB-04 form first initialize the fields to be printed in the UB04FormData class then print them using the UB04Form class.
Step 1 – Initialize Fields to Print
UB04FormData ubData = new UB04FormData();
ubData.Box1A = “Jane Smith”;
ubData.Box1B = “123 Maple Drive”;
ubData.Box1C = “Decalb IL 12345”;
ubData.Box1D = “800 1234244”;
ubData.Box2A = “Jane Smith”;
ubData.Box2B = “123 Maple Drive”;
ubData.Box2C = “Decalb IL 12345”;
ubData.Box2D = “800 1234244”;
ubData.Box3A = “112121”;
ubData.Box3B = “3B12324355”;
ubData.Box4 = “831”;
ubData.Box5 = “343434334”;
ubData.Box6A = DateTime.Today;
ubData.Box6B = DateTime.Today;
ubData.Box7 = “Box7”;
ubData.Box8A = “Jane Smith”;
ubData.Box8B = “Last Name”;
ubData.Box9A = “12345 EVERYDAY STREET”;
ubData.Box9B = “MOFFITT AVENUE”;
ubData.Box9C = “NY”;
ubData.Box9D = “11223”;
ubData.Box9E = “123”;
…
Step 2 – Print the Field
UB04Form ub04Form = new UB04Form();
ub04Form.Data.Add(ubData);
ub04Form.Print();
Please make sure that UB-04 forms are in the printer before calling the Print() method
Sample Output
Note that the printing offsets may need to be slightly adjusted in the sample below. See the Setting Printing Offsets topic.
in UB – 04 Form