
I have a Power App that allows users to input text and images for 6 different sections which are then stored in a sql database. Once stored in the database I need to be able to generate either a word document or pdf that contains the relevant fields in the database. My initial thought was to try to fill in the fields from the database via a word template but I am running into an issue with formatting.
The main problem is that all 6 of the sections are optional and each section has room for 3 different images which are also all optional so there are a large number of possible permutations to potentially display. Currently, when a section does not contain data the picture content control place holder images are still visible leaving an ugly mess. Ideally, I would be able to conditionally format the template based on which sections contain data in the database but that has been proving difficult to accomplish.
I was wondering if anyone had suggestions for implementing a solution to this problem.