Custom Compontent development

Stimulsoft Reports.NET discussion
Post Reply
Don Kedero
Posts: 5
Joined: Tue Aug 07, 2018 6:29 pm

Custom Compontent development

Post by Don Kedero »

Hi,

I'm using Stimulsoft for a year now (used it in the past with my previous employer and was very happy about it).
But with any reporting software there are always some thing that won't work. But Stimulsoft is pure .NET so a lot of customization is possible.

Situation
I'm trying to develop a report with dynamic fields which a user can add in a webapplication.
Next I want to print this report (and render those fields)
I call those fields "FreeFields", they can consist of (Yes/No, Numeric, Emoji, Text, ...)

Example: Student-record (+ some FreeFields about their grades)

HTML-report
I'm using HTML + CSS for several years now to render these reports ... besides everything it works pretty fine. But I want to migratie this application to Stimulsoft because it's easier to maintain (no browser quirks, ..)

Live-sample (with Test-data), because an images makes everything clearer: https://initech.comeros.be/Systeem/Rapp ... cacaf05748

What did I try already? Next steps?
  • Subreports in DataBands ... won't work
  • DataBands with conditions (visible true/false]
Then I came accross the samples on GitHub (https://github.com/stimulsoft/Samples-W ... 0Component). They're pretty usefull, but I'm still missing something ...
I thought about creating a component who can parse the several FreeField types and render them accordingly with the Paint-event

How can I bind "MyCustomComponentWithDataSource" to the DataBand like a StiText does?
With a value I can do a lookup of the data in the DataSource with C# ... but I need the current record/index/position. I tried to inherit from StiText (too make the GetDateBand() work) ... but then Paint doesn't work.
I'm able to draw something in the Paint-event, but I cannot access the current position of the DataSource.

Is this the best approach
Or are there better ways?
Attachments
Skeleton-sample.PNG
Skeleton-sample.PNG (168.81 KiB) Viewed 2777 times
Lech Kulikowski
Posts: 6247
Joined: Tue Mar 20, 2018 5:34 am

Re: Custom Compontent development

Post by Lech Kulikowski »

Hello,

We couldn't login in your live demo.

Please send us a sample project which reproduces the issue for analysis on support@stimulsoft.com

Thank you.
Don Kedero
Posts: 5
Joined: Tue Aug 07, 2018 6:29 pm

Re: Custom Compontent development

Post by Don Kedero »

Sorry for the late reply (took some time to create a clean-sample)

I've updated the URL; this is het HTML-version (not using Stimulsoft): https://initech.comeros.be/Systeem/Rapp ... c987141388

You can download the ZIP file from here http://sandbox.kedero.com/stimulsoft-2018-09-10.zip (44 MByte)
Lech Kulikowski
Posts: 6247
Joined: Tue Mar 20, 2018 5:34 am

Re: Custom Compontent development

Post by Lech Kulikowski »

Hello,

We need some additional time to investigate the issue.

Thank you.
Don Kedero
Posts: 5
Joined: Tue Aug 07, 2018 6:29 pm

Re: Custom Compontent development

Post by Don Kedero »

Perfect, take your time!
Kind regards.
Lech Kulikowski
Posts: 6247
Joined: Tue Mar 20, 2018 5:34 am

Re: Custom Compontent development

Post by Lech Kulikowski »

Hello,

We are working on the problem. We will let you know when the solution is available.

Thank you.
Don Kedero
Posts: 5
Joined: Tue Aug 07, 2018 6:29 pm

Re: Custom Compontent development

Post by Don Kedero »

Hi,
What is the status of my challenge :)
kind regards.
Lech Kulikowski
Posts: 6247
Joined: Tue Mar 20, 2018 5:34 am

Re: Custom Compontent development

Post by Lech Kulikowski »

Hello,

We are still working on the problem. We will let you know when the solution is available.

Thank you.
Don Kedero
Posts: 5
Joined: Tue Aug 07, 2018 6:29 pm

Re: Custom Compontent development

Post by Don Kedero »

Hi,
In meanwhile I've experimented with competitor reportsoftware, and I was able to create the report (with custom component) that I wanted.
No need to investigate this further.

Kind regards.
Lech Kulikowski
Posts: 6247
Joined: Tue Mar 20, 2018 5:34 am

Re: Custom Compontent development

Post by Lech Kulikowski »

Hello

Ok.
Please let us know if you need any additional help.

Thank you.
Post Reply