I Found that StimulReport Have a bug in this Case
I Load a Report From Byte Array In Function A
.
.
Function A()
.
.
report.LoadPackedReport(buff)
.
.
End Function
.
.
And I Use Report In function B More Than One Time
.
.
Function B()
.
.
report.RegData(MyDataSet)
report.Render()
.
.
End Function
.
.
It work in fist time that i call Function B
But When I Call it again it dos not Work .
It throw an exception : "Invalid Parameter" Or "Invalid character in a Base-64 string"
OR It Show Fields In Mistake Position For Example Display "Field Alpha Data" In "Field Beta Position"
I Use Your Offered Code(DataStore.Clear() OR Dictionary.Clear() OR Dictionary.Synchronize() ) And I Check MY Dataset Data Several Times But It's not work Yet
But when I Use This Code :
Function B()
.
.
report.LoadPackedReport(buff)
report.RegData(MyDataSet)
report.Render()
.
.
End Function
it work successfuly but ReLoading the report is Time Consuming . and I can not ReLoad ReportContent every time i want to render the Report.
Please tell me what i should do to solve this problem
Thanks
Report Is Not Change
-
- Posts: 4
- Joined: Mon Dec 24, 2007 2:35 pm
- Location: Iran
-
- Posts: 4
- Joined: Mon Dec 24, 2007 2:35 pm
- Location: Iran
Report Is Not Change
hi
My problem Was Solved
The Problem was that I save My Dataset To Bank and Fetch it when need.
But When I Save It To Bank I Dont Write SChema Of Dataset And I Use This Code
and i read dataset with this code
When We Use "MyDataSet.WriteXml(MyBinaryWriter)" The Schema Of Dataset that Contains Type Of Each Columns Is
not Save and StiReport Can Not Match The Dataset Columns With His Dictionary Columns And Throw Some Exception
When We want To Save Our Dataset To A File Or Stream We Must Save "Data And Schema" both With These Codes:
The StimulReport Is The Best Reporting Tool I Know With the great Supporting Service . But it is Expensive :grinder:
My problem Was Solved
The Problem was that I save My Dataset To Bank and Fetch it when need.
But When I Save It To Bank I Dont Write SChema Of Dataset And I Use This Code
Code: Select all
.
.
MyDataSet.WriteXml(MyBinaryWriter)
.
.
Code: Select all
.
.
MyDataSet.ReadXml(MyStreamReader)
.
.
not Save and StiReport Can Not Match The Dataset Columns With His Dictionary Columns And Throw Some Exception
When We want To Save Our Dataset To A File Or Stream We Must Save "Data And Schema" both With These Codes:
Code: Select all
MyDataSet.WriteXml(MyBinaryWriter , XmlWriteMode.WriteSchema)
.
.
MyDataSet.ReadXml(MyStreamReader , XmlReadMode.ReadSchema )