Page 1 of 1

DragDrop registration did not succeed

Posted: Wed Dec 22, 2010 8:56 am
by fuhrj
I am trying to run a report from a simple console program instead of a windows form program.

The report contains a Form and that shows up to allow me to enter in my report filters. When the report is executed, I get "DragDrop registration did not succeed".



Code: Select all


 static void Main(string[] args) { 

StiReport report = new StiReport();
report.Load(args[0]);

if (report != null) {

 StiSqlDatabase db = (StiSqlDatabase)report.Dictionary.Databases[0];
 db.ConnectionString = connString;

 report.Dictionary.Databases.Clear();
 report.Dictionary.Databases.Add(db);

 report.Show();

 }
}

DragDrop registration did not succeed

Posted: Wed Dec 22, 2010 9:35 am
by Ivan
Hello,

Please try to modify your code:

Code: Select all

StiOptions.Viewer.AllowUseDragDrop = false;
report.Show();
Thank you.