How to call Crystal Report in Nav with passing parameters

rodbernardorodbernardo Member Posts: 34
Hello Gurus,

Really need help.

I've been looking in different Navision forums and Crystal Reports as well of how to call the Crystal in Navision with passing parameters.

Is there any one had found the solution?

I found some codes in the forums, but not enough details, can't compile it.


CREATE(CRYSTALREPORT);
CRYSTALREPORT.


//CREATE(CRVIEWER);

//CRREPORT := CRAPP.OpenReport('W:\Sales\SalesPerson\SalesBySalesPersonSummaryBar.RPT', 0);
//CRVIEWER.ReportSource := 'W:\Sales\SalesPerson\SalesBySalesPersonSummaryBar.RPT';
//CRVIEWER.ViewReport;


//CrystalReport.Reset ;
//CrystalReport.ReportFileName := 'W:\Sales\SalesPerson\SalesBySalesPersonSummaryBar.RPT' ;
//CrystalReport.WindowTitle := 'W:\Sales\SalesPerson\SalesBySalesPersonSummaryBar.RPT' ;
//CrystalReport.ParameterFields(0) := 'FROMVEND;1200; True' ;
//CrystalReport.ParameterFields(SHORT index[, BSTR ParameterFields])
//CrystalReport.WindowControls := TRUE ;
//CrystalReport.WindowShowGroupTree := FALSE ;
//CrystalReport.WindowShowSearchBtn := TRUE ;
//CrystalReport.WindowState := 2 ;
//CrystalReport.Action := 1 ;


//add crycontrol as automation global and subtype Crystal Report Control.

//CREATE(crycontrol);
//crycontrol.Connect('DSN=<DSN Name>;UID=sa;PWD=;DSQ=<database name>;');
//crycontrol.ReportFileName('<report file name with full path>');
//crycontrol.DiscardSavedData(TRUE);
//crycontrol.WindowTitle('<Report title window>');
//crycontrol.Action(1);


I really appreciate if someone can share and give some directions.


Rodel,
Sydney Australia
Rodel Bernardo
Pressure is an opportunity.

Comments

  • rodbernardorodbernardo Member Posts: 34
    :?
    Rodel Bernardo
    Pressure is an opportunity.
  • krikikriki Member, Moderator Posts: 9,110
    [Topic moved from Navision Tips & Tricks forum to Navision forum]
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.