Seer
Seer

Reputation: 495

How to print a table of generated images in C#

I need to print a set of generated images in a table like structure with headings. These heading and images are never displayed on the screen. The images are generate QR codes for a series of URLS so they can easier be read in by a scanner. There need to be a header on each column and a text id field on each row but apart from that the rows would be 4-6 columns of QR codes (2d barcode).

I have found samples for printing images and samples for printing text and even a sample to print a datagrid shown on the screen but nothing for printing text and images in a table like structure. Could anyone help me out with a basic example. The table is expected to go over multiple pages vertically so I would also need to put the heading row on each page.

Even pointing me in the right direction would be useful.

This is for a windows application where I want to have code kick off a print job with no user interaction. Using dotnet 4.0.

Upvotes: 1

Views: 986

Answers (1)

Ed Bayiates
Ed Bayiates

Reputation: 11230

See my method for creating and printing FixedDocument here including source code. This method will easily allow you to generate aligned tables with images and text and save them as XPS or print them to a printer.

Upvotes: 1

Related Questions