Showing posts with label reference. Show all posts
Showing posts with label reference. Show all posts

Wednesday, March 28, 2012

Putting a db field in report header

I need to put a field in the report header, i think the way to do it is to
put a hidden textbox in the body and reference it from the header, but i
dont know how to make the expresion for that, is that the correct way to do
it?, is there better way?got the answer from another post
thandks anyway
"Rodrigo Sánchez" <rodrigoss@.netshoreprogramming.com> escribió en el mensaje
news:uzmr7f9qEHA.2856@.TK2MSFTNGP10.phx.gbl...
> I need to put a field in the report header, i think the way to do it is to
> put a hidden textbox in the body and reference it from the header, but i
> dont know how to make the expresion for that, is that the correct way to
do
> it?, is there better way?
>|||Rodrigo:
How ARE you able to place field data in the report header?
Thanks!
"Rodrigo Sánchez" wrote:
> I need to put a field in the report header, i think the way to do it is to
> put a hidden textbox in the body and reference it from the header, but i
> dont know how to make the expresion for that, is that the correct way to do
> it?, is there better way?
>
>

Friday, March 9, 2012

publishing report with reference on custom assembly

Hi,
I have a report with reference on ReportLibrary assembly.
In the Code section of the report there is the following code:
Public m_myClass As ReportLibrary.DatabaseInteraction
Protected Overrides Sub OnInit()
m_myClass = ReportLibrary.DatabaseInteraction.GetInstance()
End Sub
When I try to publish this report via Reporting Services API:
warnings = RS.CreateReport(reportName, reportPath, true, definition, null);
I get the following error:
+System.SystemException {"There is an error on line 0 of custom code:
[BC30002] Type 'ReportLibrary.DatabaseInteraction' is not defined. --> There
is an error on line 0 of custom code: [BC30002] Type
'ReportLibrary.DatabaseInteraction' is not defined."}
How I can solve this problem?
Any help would be appreciated.some addition:
my report was deployed from VS before and worked successfully.
this error is happened when I made some changes in the report and tried to
re-publish it.
"Paul Zorin" wrote:
> Hi,
> I have a report with reference on ReportLibrary assembly.
> In the Code section of the report there is the following code:
> Public m_myClass As ReportLibrary.DatabaseInteraction
> Protected Overrides Sub OnInit()
> m_myClass = ReportLibrary.DatabaseInteraction.GetInstance()
> End Sub
> When I try to publish this report via Reporting Services API:
> warnings = RS.CreateReport(reportName, reportPath, true, definition, null);
> I get the following error:
> +System.SystemException {"There is an error on line 0 of custom code:
> [BC30002] Type 'ReportLibrary.DatabaseInteraction' is not defined. --> There
> is an error on line 0 of custom code: [BC30002] Type
> 'ReportLibrary.DatabaseInteraction' is not defined."}
> How I can solve this problem?
> Any help would be appreciated.