Images are stored in the DB in below format.
Pkg | Sec | Img |
Package | Section One | Image1 |
Package | Section One | Image2 |
Package | Section One | Image3 |
Package | Section Two | Image1 |
Package | Section Two | Image2 |
I want to pull these images from DB and display in the report in below format.
Package (Text Box - Report Heading) | ||
Section One (Text Box - Sub-Heading) | ||
Image1 (Jpg file from db) | Image2 | Image3 |
Section Two (Text Box - Sub-Heading) | ||
Image1 | Image2 |
One section can have more than one images. One package can have more than one section. But One report will have only one package. How can I achieve this?