You can insert or add gradient, grid, or transparent objects in XPS files programmatically using C++. Insert Linear, vertical, horizontal gradient.... They support text, images, object transparency, grids...grid VisualBrush Create Visual brush and add grid Save output XPS...