private void Command1_Click()
{
var _with1 = CrystalReport1;
//* works with SQL server *
_with1.Connect = "dsn=myLocalSQLDB;uid=myID;pwd=myPassword";
//works
//.ReportFileName = "C:\Report_SqlSers.rpt" 'works
//* works with MSAccess *
_with1.Connect = "dsn=myLocalAccessDB";
//works
//.ReportFileName = "C:\Report_MSAccess.rpt" 'works
///* Both */
_with1.ReportFileName = "C:\\Report_both.rpt";
//with runtime error, due to re-assign value as the
//parameter to the connection, I believe?
_with1.WindowHeight = 600;
_with1.WindowWidth = 800;
_with1.Action = 1;
}