CRAXDRT Crystal Report 11

CRAXDRT Crystal Report 11

am 07.11.2007 13:45:40 von Dani Chircu

This is a multi-part message in MIME format.

------=_NextPart_000_0249_01C8214C.DDE4F560
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,

I am using an external .rpt report with one parm from C# (.net. =
Standard Edition)
Just want to call and print the report. Need to pass parm value=20
from vb.net. Using CRAXDRT (CR11). When I use=20
dcparamatid.AddCurrentValue and then check if current value is set I=20
get true but the value comes out blank. I don't receive any=20
errors though. Could you help? I have no problem modifying the record=20
selection formula (which I don't want to do).=20
Why won't it take the value?

Thanks,
Dani

------=_NextPart_000_0249_01C8214C.DDE4F560
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable



charset=3Diso-8859-1">




Hi,

 

I am using an external .rpt report with =
one parm=20
from C#  (.net. Standard Edition)
Just want to call and print =
the=20
report. Need to pass parm value
from vb.net. Using CRAXDRT (CR11). =
When I=20
use
dcparamatid.AddCurrentValue and then check if current value is =
set I=20

get true but the value comes out blank. I don't receive any =

errors=20
though. Could you help? I have no problem modifying the record =

selection=20
formula (which I don't want to do).
Why won't it take the=20
value?

 

Thanks,
Dani

 


------=_NextPart_000_0249_01C8214C.DDE4F560--

Re: CRAXDRT Crystal Report 11

am 08.11.2007 08:43:45 von Dani Chircu

This is a multi-part message in MIME format.

------=_NextPart_000_0119_01C821EB.DDF17840
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I have this code:

public void SetParameters(Report oRpt, SqlDataReader jobReader)

{

oRpt.DiscardSavedData();

CRAXDRT.ParameterFieldDefinitions rParams =3D oRpt.ParameterFields;

CRAXDRT.ParameterFieldDefinition dcparamAtid =3D rParams[1]; =
//.GetItemByName("@ATID", null);

if (dcparamAtid == null)

{

throw new ReportParameterMissingException("@ATID");

}

else

{

dcparamAtid.SetCurrentValue((jobReader["atid"].ToString()),d cparamAtid.Va=
lueType);

Console.WriteLine("dcparamATID is: " + dcparamAtid.CurrentValue);=20

}

}

When I use dcparamatid.AddCurrentValue and then check if current value =
is set I get true but the value comes out blank.

can anyone have idea?

Thanks,

Dani



"Dani Chircu" wrote in message =
news:uqxj0wTIIHA.4296@TK2MSFTNGP04.phx.gbl...
Hi,

I am using an external .rpt report with one parm from C# (.net. =
Standard Edition)
Just want to call and export as pdf the report. Need to pass parm =
value=20
from vb.net. Using CRAXDRT (CR11). When I use=20
dcparamatid.AddCurrentValue and then check if current value is set I=20
get true but the value comes out blank. I don't receive any=20
errors though. Could you help? I have no problem modifying the record=20
selection formula (which I don't want to do).=20
Why won't it take the value?

Thanks,
Dani

------=_NextPart_000_0119_01C821EB.DDF17840
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable



charset=3Diso-8859-1">




I have this code:

 


public size=3D2>void size=3D2> SetParameters( size=3D2>Report size=3D2> oRpt, size=3D2>SqlDataReader size=3D2> jobReader)


{


size=3D2>oRpt.DiscardSavedData();

size=3D2>

CRAXDRT. size=3D2>ParameterFieldDefinitions rParams =
oRpt.ParameterFields;


CRAXDRT. size=3D2>ParameterFieldDefinition dcparamAtid =3D =
rParams[1];=20
//.GetItemByName("@ATID",=20
null);


if =
(dcparamAtid ===20
null)


{


throw =
color=3D#0000ff size=3D2>new color=3D#2b91af=20
size=3D2>ReportParameterMissingException
size=3D2>( color=3D#a31515 size=3D2>"@ATID");


}


else


{


dcparamAtid.SetCurrentValue((jobReader[ size=3D2>"atid" size=3D2>].ToString()),dcparamAtid.ValueType);


Console size=3D2>.WriteLine("dcparamATID =
is:=20
"
+ dcparamAtid.CurrentValue);


}


}


When I use dcparamatid.AddCurrentValue and then =
check if=20
current value is set I get true but the value comes out =
blank.


can anyone have idea?


Thanks,


Dani


 


style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
"Dani Chircu" < href=3D"mailto:dchircu@gmail.com">dchircu@gmail.com> wrote in =
message =
href=3D"news:uqxj0wTIIHA.4296@TK2MSFTNGP04.phx.gbl">news:uqx j0wTIIHA.4296=
@TK2MSFTNGP04.phx.gbl...

Hi,

 

I am using an external .rpt report =
with one parm=20
from C#  (.net. Standard Edition)
Just want to call =
and export as=20
pdf the report. Need to pass parm value
from vb.net. Using =
CRAXDRT=20
(CR11). When I use
dcparamatid.AddCurrentValue and then check if =
current=20
value is set I
get true but the value comes out blank. I don't =
receive any=20

errors though. Could you help? I have no problem modifying the =
record=20

selection formula (which I don't want to do).
Why won't it =
take the=20
value?

 

Thanks,
Dani

size=3D2> 


------=_NextPart_000_0119_01C821EB.DDF17840--