Reply
 
LinkBack Thread Tools Display Modes
Old 08-24-2009, 10:39 PM   #1 (permalink)
dermotita
Guest
 
Posts: n/a
Default 2 Rich Text Boxes on Report - Exception thrown

Hi there,

I am trying to import 2 files into 2 different rich text files boxes using the "ReportUtilities.SetRTFControl" method. On publishing the report the following Exception is thrown

"Run validation for this report failed. Error detected was:

Exception has been thrown by the target of an invocation. Please fix before publishing report again"

Both of the ReportUtilities.SetRTFControl methods compiled okay on their own, so they are both valid statements. However when both of them are compliled together the Exception is thrown.

Any ideas?
  Reply With Quote
Old 08-24-2009, 10:55 PM   #2 (permalink)
Certified Partner
 
Ryan Brown's Avatar
 
Join Date: Mar 2006
Location: San Diego, CA
Posts: 182
Ryan Brown has much to be proud ofRyan Brown has much to be proud ofRyan Brown has much to be proud ofRyan Brown has much to be proud ofRyan Brown has much to be proud ofRyan Brown has much to be proud ofRyan Brown has much to be proud ofRyan Brown has much to be proud ofRyan Brown has much to be proud of
Default

I had something like this happen, and it was just a mistake in my code where I was trying to load the RTF's into the same control by mistake. Since they both work independently - it might have some kind of conflict between the code for the 2 controls.

Take a little breather form your script, come back and pore over it with fresh eyes, that usually helps me out to find the small little mistake keeping everything else from working!

However you may want to copy your code up here so some dev team can have a look.
__________________
Ryan Brown
Media Environment Design
Founding D-Tools Certified Partner
(760) 434-9040
ryanbrown@medesign.tv
Linked In
D-Tools Custom Reports
Free D-Tools QuickTips Videos
Ryan Brown is offline   Reply With Quote
Old 08-25-2009, 04:56 AM   #3 (permalink)
dermotita
Guest
 
Posts: n/a
Default

Found out what the problem was.

The file was already being used by another process, so there was a lock on that file. Thats the reason why I could not open.

Phew, thought my usually good eagle eye sight was failing there
  Reply With Quote
Old 08-25-2009, 03:57 PM   #4 (permalink)
Certified Partner
 
Ryan Brown's Avatar
 
Join Date: Mar 2006
Location: San Diego, CA
Posts: 182
Ryan Brown has much to be proud ofRyan Brown has much to be proud ofRyan Brown has much to be proud ofRyan Brown has much to be proud ofRyan Brown has much to be proud ofRyan Brown has much to be proud ofRyan Brown has much to be proud ofRyan Brown has much to be proud ofRyan Brown has much to be proud of
Default

I think there is also something with importing the RTF's - project either needs to be checked out or you need to add some script to set read only to false (when project is checked in it sets the files to read only). There is another thread on here from Crystal Hacker where he's diving into that read only stuff.
__________________
Ryan Brown
Media Environment Design
Founding D-Tools Certified Partner
(760) 434-9040
ryanbrown@medesign.tv
Linked In
D-Tools Custom Reports
Free D-Tools QuickTips Videos
Ryan Brown is offline   Reply With Quote
Reply

Tags
exception, reports, reportutilities, richtextbox, setrtfcontrol


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with Custom Report and Dynamic grouping bcharnz Reports and Reporting Center 4 12-03-2009 10:00 PM
Report text to All Caps? Memphix Reports and Reporting Center 2 09-28-2009 03:54 AM
sub-report force groupings grichards Reports and Reporting Center 4 08-07-2009 06:23 AM
Show/No-Show Rich Text Box based on Conditional? CrystalHacker Reports and Reporting Center 2 07-22-2009 07:08 PM
Same Man & Model, Different Description jpol Reports and Reporting Center 4 10-11-2007 03:31 PM


All times are GMT. The time now is 09:01 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.0
D-Tools, Inc.