Report.Design() Error

edited 2:32PM in FastReport .NET
Hi

i am new to fast reports, getting error on report design code statment, using following code in Asp.net weforms, may be its small issue, how i can fix it ?

FastReport.Report rpt = new FastReport.Report();
rpt = new FastReport.Report();
string repstr = string.Empty;
// loading string from database containing report contents
rpt.LoadFromString(repstr);

// this last line making error
rpt.Design();

Message : DragDrop registration did not succeed.

Inner Exception : Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it.

Thanks
Zain

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.