|
Actually, it's Screen.PrimaryScreen.WorkingArea . The Bounds includes the area covered by any AppBars (like the Task Bar).
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Thanks for correcting me on that. I will keep that info in mind. Once again, thanks!
Happy Programming and God Bless!
Internet::WWW::CodeProject::bneacetp
|
|
|
|
|
Hi,
I've seen various postings on the code project about creating a pdf file programmatically, but none of them seem to work or they mention short comings in the process. Is their a way to do this? I have an xml file I'd like to create as a .pdf file.
Can anyone point me to a free solution to do this?
Thanks
|
|
|
|
|
You could use XSL:FO and apache FOP which is a complete ballache. Theres some programs out there http://www.gohtm.com/ for example.
|
|
|
|
|
Hi all,
Are there any good, cheap or free obsfucator for C#
beside the Dotfuscator ?
Thank
|
|
|
|
|
Did you try searching google[^] first? Several hits come up. Evaluate them and make your own judgement about how good they are; afterall, an good obfuscator is one that does what you need.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Hi all,
is there any means to program a dynamic form at
runtime by c# ? I mean to create a form with controls
whose positions or control type are determined at runtime ?
e.g. can I program the code to read in a xml file for the
configuration(the list of controls and its position) of the form
to render the form UI to the users at runtime ?
Thanks
|
|
|
|
|
Yes you can. It's no different from the code generated by the Windows Form Designer. You can find examples of this all over, but especially if you look at the Windows Forms Designer generated code section of a form created in the designer.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
sure create a template say using a table layour which contains place holders for the items which you wish to add at runtime.
Depending on the circumstances add the controls you wish according to the situation.
Placeholders are simply like frames which use no code and no resources they are simply spaces to put controls inside. From member to add the items you would use placeholder.add(object) something along these lines.
You could as you say use XML which contains say configurations on the user types, you could then use the XML reader to load the controls in.
Placeholders would be your best option as they are built for this dynamic content changing situation
Atul
|
|
|
|
|
pyhtang1 wrote:
e.g. can I program the code to read in a xml file for the
configuration(the list of controls and its position) of the form
to render the form UI to the users at runtime ?
I recommend you have a look at MyXaml[^]
Michael
CP Blog [^]
|
|
|
|
|
As what I know, we need to create a table for LZW compression. I just don't understand how the program keeps track the TABLE when we compress a file from one machine, then transfer the file to another machine and decompress the file. Is the TABLE transfered with the compressed file?
Please help me with this issue. Thank you very much.
bettie
|
|
|
|
|
|
Please open this link and read the information. They use the name DICTIONARY instead of TABLE. Thanks!
http://www.cs.cf.ac.uk/Dave/Multimedia/node214.html
bettie
|
|
|
|
|
The dictionary, or table, you're reffering to is written into the .ZIP file. The application that decompresses the file then reads the dictionary table from the file.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Does it mean the table put together with the compressed file when we transfer the file over the network? Thanks!
bettie
|
|
|
|
|
Yes.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
My sql query looks like
select t1.code,
t2.name
from tab1 t1, tab2 t2 where t1.code=t2.code
Then I call DataAdapter.Fill(DatasetXSD);
no errors occured but DatasetXSD is empty, and when I run the same query in PL/SQL Developer everething works fine...
Maybe some one can tell me anoter way to fill Dataset from multiple tables correctly?
xedom developers team
|
|
|
|
|
I already answered your question below. You must set up table mappings. See the DataAdapter.TableMappings property documentation in the .NET Framework SDK. When you use the DataAdapter designer in VS.NET, it does this for you.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Thanx, but I tried to use mapping and got the same effect...I even create dataset fom a blank xsd file, and I create a table with 9 columns (like my query returns) and even names and types in dataset.xsd and query result are the same, but I still got an empty Dataset. Could you give me some link for mapping usage? Maybe I do somthing wrong with it..
xedom developers team
|
|
|
|
|
I didn't say create a typed DataSet (which is still a good idea), I said look at the documentation for the DataAdapter.TableMappings property. Even with a typed DataSet , the DataAdapter has to know how to map tables into your DataSet (typed or read in from a schema - whatever the case may be).
Open the .NET Framework SDK documentation (via the SDK start menu group or VS.NET) and type DataAdapter.TableMappings . The .NET Framework SDK includes great documentation, but you have to read it.
In this case (and in many other cases), there's even an example.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
ok thank you very much...I've red all samples(can't say them are very usefull) but it still does not work...
Let me tell you for what I need to work with dataset in that way:
I now developing ASP.NET Application with crystal reports, to use push model I need to add DataSet maunally like xsd file. and then in my application I filling this xsd dataset.
xedom developers team
|
|
|
|
|
Lets say the DataSet has a structure like so:
<DataSet1>
<t1>
<!-- Fields -->
</t1>
<t1>
<!-- Fields -->
</t1>
<t2>
<!-- Fields -->
</t2>
<t2>
<!-- Fields -->
</t2>
</DataSet1> Then before you execute DataAdapter.Fill , executing code similar to the following:
dataAdapter1.TableMappings.Add("Table", "t1");
dataAdapter1.TableMappings.Add("Table1", "t2");
dataAdapter1.Fill(myDataSet1); Now, since you're using table aliases, those will be the table names used in the output so if your DataTable names use the aliases, you shouldn't need this. A DataTableMapping maps the source table name to a destination table name. Trust me - it's the reason your DataSet is empty. You must make sure that your table names in the result sets match up with the table names in the DataSet , whether that DataSet is typed, programmatically created, or read-in from an XSD.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Ok, thnak for your information. But I think the problem is that when I run this code:
OracleDataAdapter da = new OracleDataAdapter();
da = new OracleDataAdapter(sql, con);
DataSet ds = new DataSet();
da.Fill(ds);
Everything goes fine. But when I've just to use my xsd datset like this:
OracleDataAdapter da = new OracleDataAdapter();
da = new OracleDataAdapter(sql, con);
dsXSD = new DataSet();
da.Fill(dsXSD);
It returns an empty dataset, only columns header are avialinle to be shown in the datagrid.
xedom developers team
|
|
|
|
|
Look at the "generic" DataSet generated with the first statement. See how the tables are named. Now name the tables in your typed DataSet the same way, or use a DataTableMapping as I've said several times above. If the table names in the result set don't match up with the names of a configured DataSet , it will remain empty.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Thnank you! It works now!!! I've just renamed dataset tebles...but I still don't understand how DataTableMapping works, but anyway thanx for you advises. Crystal Reports not so suitable technology as for me...
xedom developers team
|
|
|
|