Catalogs of products, services and more

Surely you noticed that in their work, designers, painters or tinsmiths use color sets from some standard sets (tinting systems) - RAL, PANTONE, NCS, Tikkurila.







In their work, masters use a limited set of several selected colors that are harmoniously combined with each other. Sometimes there can be several such sets in a project, and a need arises for software that could save working options, and then the final result in a certain database.

Thus, we obtain the following software requirements:





As a format describing the project, take json of the following structure







where name is the project code, image is the characteristic picture of the project converted to Base64String (now you can do it on many sites and just copy it to json) and an array of colors (Name + Color Code). If necessary, new parameters are easily added to json.



Throw the resulting file into any storage (or site). For example, I throw in the storage of large objects Azure (container)







We make access to the container anonymous and then click on the link



https://***.blob.core.windows.net/colors/bd.json







We get the following result in the browser







Installing the demo version of FastReport .Net

Sketch a small report





The main thing in the report itself is to decode the image for this, we add the calculated field Img

and set the formula







In the script for drawing colors, we prescribe the code



  private void Data2_BeforePrint(object sender, EventArgs e) { System.Drawing.Color col = System.Drawing.ColorTranslator.FromHtml((String)Report.GetColumnValue("JSON.item.set.item.color")); Shape1.Fill = new SolidFill(col); Shape1.Border.Color = col; }
      
      





Run the report from the designer FastReport .Net (Desktop application)











Download the report here . Before starting the report, check the data source (It is possible that the set json address will no longer be working), move json to your resource and run the report.

The designer allows you to convert the received report to pdf and many other formats, so there is something to demonstrate to the client that it will definitely come in the right format (for example, pdf by mail). You can add several files to the project, as well as maintain a complete database in a separate file. In my opinion it’s quite convenient and without troubles. It is possible to make a web application that will automate more complex processes.



All Articles