DragDrop registration did not succeed

Stimulsoft Reports.NET discussion
Post Reply
fuhrj
Posts: 120
Joined: Wed Jun 11, 2008 12:51 pm
Location: Lancaster, Ohio

DragDrop registration did not succeed

Post 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();

 }
}
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

DragDrop registration did not succeed

Post by Ivan »

Hello,

Please try to modify your code:

Code: Select all

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