|
He's getting a compiler error because for some reason, vs.net doesn't feel ".ExportOptions" is a valid property of ReportClass. Or at least a valid propery of the variable assigned the value of a ReportClass(the "repClass" variable)
This same code was implemented in VB.net and we had no problem, so it's a little odd.
Thanks again.
-Goalie35
|
|
|
|
|
Goalie35 wrote: He's getting a compiler error because for some reason
What does the compiler error say? What is the actual error message?
:josh:
My WPF Blog[^]
|
|
|
|
|
Hi,
The problem is that the reference for ReportClass is not set. For further info check
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/aspnetcustrep.asp
|
|
|
|
|
hi i m reading images from the databse and showing on picbox,so i had to make the temporary file to show pic on the picturebox thorugh Pic.image=Image.fromfile etc. it works fine.
i want to make one file for that purpose and delete when new file is readed from databse.
i m using this code for that purpose
Pic.image=null;
if(File.Exist("temp.bmp"))
File.Delete("temp.bmp");//give exception file used by process
String newf="temp.bmp"; and save the new data from database to this file and show it to the user.
but it give the exception that file is used by another process,i had clear the picbox but still gives.
how to do that Thanks in advance.
Tasleem Arif
|
|
|
|
|
Cross posting is considered very rude!
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Dave Kreskowiak wrote: Cross posting is considered very rude!
Looking at some of his other posts, he seems to do it often.
|
|
|
|
|
How to add for example all Columns from DataTable or DataSet into control`s (DataGrid) Collection drop down list.
For example I have DataTable and DataGrid, I connect those two and in Collection , each item in collection has few properties one of them is "Column" property, now when i want to chose witch Column I want, all columns should be displayed in drop down list (trought UITypeEditor), but problem is how to do it ? How to pass column names to item(s) ?!
My English is bad i know
Thanks
|
|
|
|
|
We have a Windows application that was built in VS 2003 and .Net 1.1 - we just upgraded everything to VS 2005 and .NET 2.0.
We ran some upgrade installations recently and at the end of the installation process got a System.BadImageFormatException error. it doesn't happen all the time but at least 50%.
We do have a couple of launch conditions and custom actions in our deployment but nothing that i can see would be causing this necessarily.
Any ideas?
Thanks,
Eric
|
|
|
|
|
to add to my first post...we have an installer class that runs first during the installation. The full error was:
Exception occurred while initializing the installation: System.BadImageFormatException: The format of the file "Installer.exe" is invalid.
|
|
|
|
|
Hi everybody,
i need to know how to step through FOP Source code as it gets executed. If anybody can help that would be great.
Thank you in advance.
He who laughs last...
|
|
|
|
|
"FOP"?? Fraternal Order of Police??
You might want to elaborate on this and what you're really doing with it, besides trying to debug it.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
i want to see how fop does the conversion to try and find out if it is my xml and xsl files that has the problem that makes fop run out of memory. i have 256MB RAM and it is not enough for fop to create the pdf from my xml and xsl. it keeps running out of memory and ultimately it has to use virtual memory. but this slows down my whole system. The Java.exe in the task manager keeps growing and growing as the conversion takes place...
i just want to try and see if there is a non ending loop or something like that in the fop code. i'm using fop 0.20.5
He who laughs last...
|
|
|
|
|
I had to do a little digging to find out what "FOP" was. Keeps growing and running the system out of RAM?? I'm not surprised. According to the Apache FOP[^] documentation, it's not uncommon to see it consume LARGE amounts of RAM. Your system probably just doesn't meet the requirements, for the current version of FOP, to do what you want, how you want to do it. Most likely, the problem is being caused by your own XSL code.
You're not going to debug this thing under Visual Studio because VS can't debug anything in the Java Runtime. That's for a Java Development Environment to do.
Besides, 256MB of RAM is enough to run Visual Studio, but you'll run the machine out of RAM just launching it and IT will start swapping and slowing everything else down.
And this question had nothing to do with C#...
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I appologize for posting my question here, it's just i thought i could step the code through Visual Studio (i'm using C#, learning as i go). But i understand your point of view. I found out that i could generate the xsl-fo by using the xalan.bat to try and find if my problem is in the conversion from xsl and xml to xsl-fo or in the xsl-fo to pdf...
Thank you for taking the time to help me.
i'll take it from here.
He who laughs last...
|
|
|
|
|
Hi,
I am currently working on a project named "motion detection to control pc". It is a project which can assist paralysed patient to access the pc using facial movement.
I have a webcam capturing movement of head and translate it to mouse(cursor) movement.
Do anyone have any idea on how to use codes to control/ program the mouse(cursor) movement?
Thanks~
|
|
|
|
|
In Windows Forms, the mouse cursor's location can be set via the static Cursor.Position property.
:josh:
My WPF Blog[^]
|
|
|
|
|
Hi,
I am a newbie towards c#, not very sure whether i did the correct way. Can you assist me?
I have write a simple coding using Cursor.Position:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
public void MoveCursor()
{
if(!this.Cursor.Equals(Cursors.Default))
{
this.Cursor = new Cursor(Cursor.Current.Handle);
Cursor.Position = new Point(Cursor.Position.X - 50, Cursor.Position.Y - 50);
MessageBox.Show(Cursor.Position.X.ToString);
}
}
private void Form1_Load(object sender, System.EventArgs e)
{
MoveCursor();
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I actually wanna do a simple codes which can read the current mouse position and write a new mouse position to it. However, the above codes cause an error: "Method 'int.ToString(string)' referenced without parentheses" which i do not the cause of this error.
|
|
|
|
|
hi
is there any activex component for pocket pc ??
actually i wanna develop mp3 player in c# for pocket pc.
i am trying to add window media player control in pocket pc form. but not succeed
so please help if any one know
thanks
raj
india
india
|
|
|
|
|
Hi, I am new to C# and visual studio, please direct me to an alternative to database method of saving data as my details usually get too large. eg: taking the familiar Customers and Orders scenario, one customer does not have to be linked to another. I want to use Open and Save As file to save One customer and variable number of orders using customer name or ID as filename.
Do I have to use Binary Read and Write? Thank You
Ramhith
|
|
|
|
|
First and foremost, if your details are getting to large it sounds like a very likely candidate for a database and normilization. As for the Open and Save functionality that is user eye candy which you can map to any functionality you want. If you are truly adament about not using a database there are a myriad of options. XML files ( use xml serializer), Binary files, DataSets, bitmaps, really you can get real creative on this if you want.
Use a DB, save yourself the headache.
A man said to the universe:
"Sir I exist!"
"However," replied the Universe, "The fact has not created in me A sense of obligation."
-- Stephen Crane
|
|
|
|
|
i have a program in which i have a switch statement and subsequent case statements in which i start some threads(each per case).i have not implemented any Gui event handlers as of yet but my application freezes for as long as those threads reach to completion.
what may be the probelm?
i can send the sample code if someone may wish to see it.
|
|
|
|
|
so your saying that when your thread is created and executed you have no reference at all the any control or form properties?
You could also try control.invoke to call the thread?
Gav
|
|
|
|
|
What does Main do? Surely your switch case is not inside Main . Also, posting the relevant piece of code would help.
Regards
Senthil
_____________________________
My Blog | My Articles | My Flickr | WinMacro
|
|
|
|
|
Mystic_ wrote: i can send the sample code if someone may wish to see it.
How about just the switch snippet statement and the line where the app freezes? That would be the most helpful and is your best bet to get an answer to your question.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Messianic Instrumentals (with audio)
The apostle Paul, modernly speaking: Epistles of Paul
Judah Himango
|
|
|
|
|
to give u idea of what iam saying.
this is just a picture of what iam trying to imply
i have a class
public class Form1 : System.Windows.Forms.Form
{
public struct Data
{
public int data;
public Element_tg element;
}
public class Element_tg
{
public string elementstr;
public int count;
public bool last;
public int set_ele;
public Element_tg child;
public Element_tg parent;
}
pubic class ThreadProp
{
public static Data info1,info2;
public static string file1,file2;
public static string origin;
public static string filename;
public static bool nav;
public static NameValueCollection nvcol;
public static string url;
public static Uri uri;
public static string result;
public void Ext_Text()// uses string file1, Data info1,
bool nav
{
//uses a com component and rest all is simple programming
/ /its a lengthy code
}
public void Test_Download()// uses string file2, Data
info2,string origin,string filename
{
//call another function which interacts with internet for
downloads
}
public void WebInteract()//uses string url, (this ones not
necessary) string type,NameValueCollection nvcol
{
//this one also interacts with internet
}
}
[STAThread]
static void Main()
{
Application.Run(new Form1());
}
private void bt_load_Click(object sender, System.EventArgs e)
{
ThreadProp tr=new ThreadProp();
switch()
{
case 1:
Thread thrr=new Thread(new ThreadStart(tr.Ext_Text));
thrr.Start();
break;
case 2:
Thread thrr=new Thread(new ThreadStart(tr.Test_Download));
thrr.Start();
break;
case 3:
Thread thrr=new Thread(new ThreadStart(tr. WebInteract));
thrr.Start();
break;
}
}
}
-- modified at 19:02 Monday 17th July, 2006
|
|
|
|