CRAXDRT Crystal Report 11

  • Thread starter Thread starter Dani Chircu
  • Start date Start date
D

Dani Chircu

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
from vb.net. Using CRAXDRT (CR11). When I use
dcparamatid.AddCurrentValue and then check if current value is set I
get true but the value comes out blank. I don't receive any
errors though. Could you help? I have no problem modifying the record
selection formula (which I don't want to do).
Why won't it take the value?

Thanks,
Dani
 
I have this code:

public void SetParameters(Report oRpt, SqlDataReader jobReader)

{

oRpt.DiscardSavedData();

CRAXDRT.ParameterFieldDefinitions rParams = oRpt.ParameterFields;

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

if (dcparamAtid == null)

{

throw new ReportParameterMissingException("@ATID");

}

else

{

dcparamAtid.SetCurrentValue((jobReader["atid"].ToString()),dcparamAtid.ValueType);

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

}

}

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

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
from vb.net. Using CRAXDRT (CR11). When I use
dcparamatid.AddCurrentValue and then check if current value is set I
get true but the value comes out blank. I don't receive any
errors though. Could you help? I have no problem modifying the record
selection formula (which I don't want to do).
Why won't it take the value?

Thanks,
Dani
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top