Wrox Programmer Forums
|
BOOK: Professional Crystal Reports for VS.NET
This is the forum to discuss the Wrox book Professional Crystal Reports for Visual Studio .NET by David McAmis; ISBN: 9780764544033
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Crystal Reports for VS.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 18th, 2005, 03:40 AM
Registered User
 
Join Date: Feb 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default .net pass reportDocument

I have a problem about "ReportDocument" pass out to another dll

The error as following :


"System.InvalidOperationException: It is invalid to show a modal dialog or form when the application is not running in UserInteractive mode. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.

Server stack trace:
   at System.Windows.Forms.MessageBox.ShowCore(IWin32Win dow owner, String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options)
   at System.Windows.Forms.MessageBox.Show(IWin32Window owner, String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options)
   at Microsoft.VisualBasic.Interaction.MsgBox(Object Prompt, MsgBoxStyle Buttons, Object Title)
   at PDFDComNS.PDFDCom.TestExport2PDF(ReportDocument rpt, String strOutPut)
   at System.Runtime.Remoting.Messaging.StackBuilderSink .PrivateProcessMessage(MethodBase mb, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink .SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)

Exception rethrown at [0]:
   at System.Runtime.Remoting.Proxies.RealProxy.HandleRe turnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateI nvoke(MessageData& msgData, Int32 type)
   at PDFDComNS.PDFDCom.TestExport2PDF(ReportDocument rpt, String strOutPut)
   at ClientProgram.Main.cmdPDFDCom_Click(Object sender, EventArgs e) in C:\vbNetTesting\Client Testing\ClientProgram\Main.vb:line 400" String



 
Old August 10th, 2005, 07:05 PM
Registered User
 
Join Date: Aug 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Without details on what you're trying to do with it, I'd guess that the report has a parameter that is not being set, and is trying to show you a dialog to get the parameter, but is unable to because the application is WinForms or is a Service. Just a guess.





Similar Threads
Thread Thread Starter Forum Replies Last Post
error at reportDocument.Load akhilvira Crystal Reports 0 April 10th, 2007 12:00 AM
ReportDocument.ExportToDisk error More options akhilvira Crystal Reports 0 February 26th, 2007 03:09 AM
Not a ReportDocument derived class chokk Crystal Reports 0 May 10th, 2006 08:21 AM
Not a ReportDocument derived class error AnotherUser BOOK: Professional Crystal Reports for VS.NET 0 March 9th, 2004 01:41 PM
ReportDocument problems tobin0971 Crystal Reports 1 June 5th, 2003 05:52 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.