Click here to Skip to main content
15,914,608 members

Comments by tonj67 (Top 2 by date)

tonj67 21-Jul-22 16:56pm View    
I try to explain you what i did, step by step.

i created an application to do some tests (windows form), then i had add one report (file report.rdlc) .
Into this report i have dragges one textlabel and created a parameter to fill with some words. the textlabel can be with the word "hello" or "hello world", so the lenght can be variable.
under this label i want draw one line like the lenght of the textlabel.
The file rdlc is into the application folder

Sorry but i feel stupid and not sure to have explained you so good. I do not find any event for the report.

Can i find some manual or example to get suggests how to do?

Thanks a lot
tonj67 18-Jul-22 4:16am View    
Thanks a lot Gerry for your reply...
i would like to add it to the report writing the code... if it's possible
Can you explain better what mean:
"depending on what that report "engine" supports: images and / or graphics commands."?

i had wrote this code but nothing appear on the report:

Dim g As Graphics = ReportViewer1.CreateGraphics
Dim mypen As Pen = New Pen(Brushes.Black, 50.0F)
g.DrawLine(mypen, 10, 10, 0, 10)
g = ReportViewer1.CreateGraphics

ReportViewer1.LocalReport.Refresh()
ReportViewer1.RefreshReport()

for sure i wrote "una schifezza" (in italian language)

Thanks in advance for your help