|
Hello,
I get this exception while running the code below:
Exception:
An unhandled exception of type 'CrystalDecisions.CrystalReports.Engine.InvalidArgumentException' occurred in crystaldecisions.crystalreports.engine.dll
Additional information: Error in File C:\tmp1\Report1.rpt:
Invalid table number.
Code:
<br />
ReportDocument rpt = new ReportDocument ();<br />
this.dataset.WriteXml(@"C:\dataset.xml", XmlWriteMode.WriteSchema);<br />
rpt.Load(@"C:\tmp1\Report1.rpt");<br />
rpt.SetDataSource(this.dataset.Tables["CashFlow"]);<br />
crystalReportViewer1.ReportSource = rpt;<br />
Any ideas why am I getting the error?
Thank you
-- modified at 11:04 Monday 26th September, 2005
I am getting the exception when I am Setting the DataSource for my report rpt object.
|
|
|
|
|
Hi does anyone know how it is possible to control a datagrids scrolling from a vertical scrollbar? I am trying to see if I can use this to scroll the datagrid, but am having no luck so far. Is there anyway to pass the scroll event from the vScrollbar to the datagrid?
|
|
|
|
|
What exactly are you trying to accomplish? If you set the CurrentRow of a datagrid it should automatically scroll to that row.
I tried controlling the horizontial scroll bar on a DataGrid once, but I didn't have much luck. I could get it to move but the DataGrid itself wouldn't update.
|
|
|
|
|
Hi, I actually solved what I needed to using CurrentRowIndex. Do you know of a way to turn the datagrid scrollbars off?
|
|
|
|
|
I don't. Perhaps you could search the control collection of the datagrid for the scroll bar and then remove it from the collection? However, I suspect that the second you add another record or resize the datagrid it would get recreated.
|
|
|
|
|
I have placed two treeviews within a MAIN panel. Before doing so, I also put each treeview within its OWN panel as well. I then put a splitter between each TREEVIEW panel within the MAIN panel. I did this so I could dock buttons onto each treeview and have them maintain their DOCKED position even when the splitter moves. Now, the problem. The Treeview and its OWN panel that is docked at the bottom of the MAIN panel works great. The top one does not. When the splitter resizes the Treeview Panels, the vertical and horizontal scrollbars dont show up on the Top Treeview. Any suggestions? Thanks in advance.
D
|
|
|
|
|
hi
Would you please explain it..... Dont mind ..I could not Undersand your problem...
because I have been working arround tree views a lot.. so i decided to ask you the problem..
Regards
Munawar Hussain
Sr.Software Engineer
Ayfasoft Lahore Pakistan
Cell# +92-42-321-4365657
+92-42-304-4030466
|
|
|
|
|
No problem.
I have three panels. A MAIN panel and two panels with a treeview in each. I have the two TreeView panels INSIDE the MAIN panel. I use a splitter to resize the two treeview panels within the MAIN panel. The two treeviews are stacked on top of one another inside of the MAIN panel. When I resize the form, only the bottom treeview displays scrollbars. The top one does not. Why is this? I have checked all of the setting, and they are the same for both treeviews.
If you need any more information, feel free to ask.
|
|
|
|
|
Are you sure you are seeing all of both treeviews? I ask because if you don't have the z-order of the controls correct and you have one of them set to dock as fill sometimes you can find the control fills the entire screen with the other controls docked on top of it (instead of next to it). It's possible that half of one of your treeviews is being obscured by the other without you realizing it.
|
|
|
|
|
I think you are right. However, how do I fix this problem and still be able to use the splitter to resize each treeview and its corresponding panel? Thanks again.
|
|
|
|
|
I'm writting .Net dll using Hashtables.
When i debug the Dll blank lines and Commented Lines gets debugged.
When i change the Source Code it executes with the previous source code.
(i.e) New Changes are not getting reflected while debugging. It is debugging with the old code.
I tried Clean and Rebuild option but their no effect.
--------------------------------
bharath. k
-- modified at 8:40 Monday 26th September, 2005
|
|
|
|
|
Make sure your exe file matches its pdb file and that they are in the same directory.
Also make sure that your application is not in the GAC. Or else you will use the assembly from the GAC the and the new pdb, which cause the same symptom you descibed.
Good luck,
Ami Bar
|
|
|
|
|
Yeah it is working.
Thanx alot Ami Bar.
|
|
|
|
|
Hi,
I'm wondering if there is any COM object form Microsoft Office Picture manager or MS Picture Viewer that one can use? I want to be able to clik on a picture and open either one of the above mention item the same way it's possible to open Word or Excel.
Thanks for your help
|
|
|
|
|
Hi all.
I'm trying to read a stream to string but seem to be having some trouble.
string _content = "";
System.IO.MemoryStream _stream = new System.IO.MemoryStream();
SoapFormatter _Formatter = new SoapFormatter();
_Formatter.Serialize(_stream, _element); // Serialize object
_stream.Flush();
System.IO.StreamReader sr = new System.IO.StreamReader(_stream);
_content = sr.ReadToEnd();
return _content;
The _stream's buffer isn't empty at all but yet the streamreader returns an empty string.
|
|
|
|
|
That is probably because you are reading from the current position in the stream (the end) to the end of the stream. Reset the position before you read the stream.
---
b { font-weight: normal; }
|
|
|
|
|
|
Hi,
I'm having this problem of changing the back color of a multiline textbox I have which is also a read only textbox. Its back color turn grey when I set readonly = true and I just can't find anyway to change it.I'd been searching the Internet for the whole day but just can't find any solution. By the way, I'm doing a pocket pc project.
Thanks for any ideas on this
|
|
|
|
|
As far as I know, it can't be done with the standard textbox. Possibily you could derive your own TextBox control and override OnPaint?
|
|
|
|
|
That's not good...I can change the color with ASP.NET easily by changing the color in the property window, why C# have to be different, oh well, I guess I just have to sort things out now, thanks
|
|
|
|
|
I've done this a number of times.
Just change the textbox's background color in the properties window.
Darryl Borden
Principal IT Analyst
dborden@eprod.com
|
|
|
|
|
I'd tried that, but it is still grey when I deploy the project,that's why I post this question,it's really giving me a headache
|
|
|
|
|
Try these steps...
Create the textbox
Set Multiline to true
Set Word Wrap to true
Set Readonly to true (at this point it turns gray and back color is still white)
Change the back ground color to some other color (does not matter) and it should visibly change from gray to the new color.
Change it back to white.
I just performed these steps and it worked fine for me.
dpb
Darryl Borden
Principal IT Analyst
dborden@eprod.com
|
|
|
|
|
Thanks for the help, I'd tried your steps, it's not working, that is so strange, it happens just as you said, the changes to gray when set to read only and everything, only the end result is different, the back color is still grey when I run it. I really have no idea what to do now
|
|
|
|
|
You can optionally set "enabled" to false and change the background color, but then the user would not be able to select and copy text or use the scroll bars.
Darryl Borden
Principal IT Analyst
dborden@eprod.com
|
|
|
|