I want to Generate / Print pdf file from desktop C# application.
Excel file is attached to show desired report format.
I'm looking for a class to encapsulate the filling of the report file with data.
Some data will be filled in simple fields. Other data will be used to build the report.
Suggestion: use: [login to view URL]
## Deliverables
Create a Simple Form with two buttons:
- View Sample Report
- Print Sample Report
The buttons will be have as they indicate.
**The Report:**
Start by looking at and printing the excel file attached. The printed document and excel file will be referenced in the rest of the requirements below:
The excel file output is a sample of how the pdf report should look like. The layout of the printed file on Letter sized paper is exactly how I want the resulting pdf to print (without the highlighted color).
The things that are expected to change in the report are highlighted.
- Yellow boxes will have text inserted.
- Pink/purple boxes will have an image inserted.
- The alternating Green / Blue sections will be dynamically added, but will follow either the blue format, or the green format.
A single blue or green sections cannot span multiple pages.
The report could be up to 10 pages long or more, depending on how many sections are inserted.
---
**Coding:
**
Create a class that will encapsulate the report creating functionality
Use the form referred to at the beginning of this description as a way to demo the functionality of the report.
**Below is example code that I expect to use to create the form:
PrintableForm PF = new PrintableForm();
[login to view URL] = "TC";
[login to view URL] = imagefile;
[login to view URL] = "IC";
[login to view URL] = Now().ToLongDateTime();
[login to view URL][1].Text = "some text";
****[login to view URL][2].Text = "some other text";
...
[login to view URL][1].Text = "info abc";
[login to view URL][2].Text = "more info";
...
[login to view URL][1].Text .... //you get the point
...
[login to view URL] = "long instruction text here...";
...
****[login to view URL]("Serialize",[login to view URL]);
[login to view URL]("Pretest",[login to view URL]);
...
[login to view URL][1].[login to view URL]("Test:","SomeTest");
****[login to view URL][1].[login to view URL]("Tester:","Tester 55");
****[login to view URL][1].[login to view URL] = "1234";
[login to view URL][1].[login to view URL] = "1/1/2010";
[login to view URL][1].[login to view URL] = "baseket 1";
[login to view URL][1].[login to view URL] = "5";
****[login to view URL][2].[login to view URL](imagefile); //in pink box
****----------------
[login to view URL]() //views the file (launch adobe reader or something)
[login to view URL]() //Prints file to default printer
**