|
I'm made a RDLC report with .net 2005 and ms-access XP.
I've taken 8.268 x 11.698 inch (A-4) size of report area because it's not a list its a proforma,
and I've set all controls which covers whole page, means one record covers a single page.
I've manually desiged report and given blank area in report for initial margins in left,right,top,bootoms.
Report result is satisfactory and all data displaying properly.
But a little problem with printing. When I Print report
It print 4 pages which takes some data of left portion of first page
and second page takes content from right portion and also in
third and fourth page.
after Keen observation i've seen that the by default print dialog sets the
margin 1" for all sides. when we set page margins 0,0,0,0
in page setup dialog box, report printing is perfect as i want in one page.
Is any method to change page setup (Margin) by code in report viewer so
I can print my page every time correct and does'nt need to change page
setup every time I print.
Ashkumar
|
|
|
|
|
I can usually get up and running with a Forms control pretty quickly, but this one has me baffled. I can only conclude that I don't understand what it's for.
Basically, I need a control to display a list of items, one at a time. I need the ability to scroll through said items and change them on the fly. For example, say the user is using a program and types a new value into the DomainUpDown control. The new value replaces the old value at the currently selected index.
But that isn't how the DomainUpDown control behaves. It doesn't change the selected item to the value that's been entered. I'm not sure why.
Any clues will be appreciated. If there's another control I should use instead, I'd be happy if someone could point me in the right direction.
|
|
|
|
|
I did a finer reading of the documentation[^] for the DomainUpDown control class...
The user can also enter text in the control, unless the ReadOnly property is set to true (the string typed in must match an item in the collection to be accepted).
Well, apparently the DomainUpDown control isn't what I'm looking for.
|
|
|
|
|
I would just use a ListView or ListBox.
|
|
|
|
|
Hi.
I'm writing an application with Compact Framework 2.0 SP 1. I want to apply the [STAThread] attribute to the main method, but there seems to be no such attribute. I get offered the MTAThread attribute, but not STAThread. Of course, the compiler doesn't find either. It just seems to be missing in the referenced assemblies (System.dll). I didn't find anything about this problem on the web, so could anybody help me, please? I'm quite desperate. I already reinstalled the CF 2.0, no success. Nobody else seems to have had this problem, ever. Help!!!
Thanks!
rudiman
-- modified at 18:59 Saturday 2nd December, 2006
|
|
|
|
|
You can't do that. STAThreadAttribute is not supported in Compact Framework.
---
b { font-weight: normal; }
|
|
|
|
|
Hi....
I have devoloped website in asp.net.
I just upload the project using ftp. Its works,
but i dont know how to upload sql database on server.
Can anybody please help me, Pls give me full details.
I used connectionstring in web.config which works for localhost.
but what connection string i should use for uploding on net.
|
|
|
|
|
Don't cross post
only two letters away from being an asset
|
|
|
|
|
hi
i want to create a variable based connection string in sql server ,
i want to give data source field in the connection string after getting it from a computer name variable , is that possible . if so how ,, can any body tell me the syntax
hello
|
|
|
|
|
Data Source=[MachineName]; Initial Catalog=....
If the database in on the machine the application is running on you can use
Data Source=.; Initial Catalog=...
only two letters away from being an asset
|
|
|
|
|
|
pls help me that how i populate the data of a selected row from one datagridview to another datagridview.
i need your help.
thanks in advance
regards
taniya banerjee
mail me to -
taniyabanerjee@rediffmail.com
|
|
|
|
|
Hallo,
the data shown in a datagridview come from the datasource, which can contain e.g. a Dataset or a datatable. By modifing them the grid display is also altered.
To change data you can do e.g.
datatabel1.rows[23][53]=datatable2.rows[65][2]
//copy cell in row65 column2 to row23 column53 in datatable2
or
datatabel1.rows.add(somedatarow)
I hope it helps.
cu
|
|
|
|
|
Hello friends,
How can i make a web service interface which can access using HTTP POST Method (not by SOAP Method). Means request and response in xml format.
If anyone has idea about this please help me.......
Thanks
Rgds
Nithin
|
|
|
|
|
i want to add oracleDataAdapter in the data tab in the visual studio .net 2005
when press choose item then navigate to oracleDataAdapter check it and press OK.....surprisingly it doesn't appeared in the tool box
what is the solution?
thanks in advance
haitham
|
|
|
|
|
You did every thing right. Are you looking under the right tab in the ToolBox? I put them under the General tab and they popped up just fine.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
i did that under the general tab and data tab but it didn't work
when i search for a solution to this problem i read that there are controls should be registered before added to the toolbox
should it? and if how can i do that?
tanks for ur attention to answer me
haitham
|
|
|
|
|
i forgot to mention that i want to add these controls in web project not in windows project as i did it successfully in windows
thanks in advance
haitham
|
|
|
|
|
Hi,
Does anyone ever manipulate the L1, L2 cache directly when writing managed application for Windows? Is it possible to load the whole application in L1 or L2 cache. I was told by my boss I should load my application into L1 or L2 cache for performance reason. As I've never written such code before, I'm wondering whether it can be done. Hope you guys can give me a few pointers.
Thanks,
chew
|
|
|
|
|
AFAIK you can't do it directly, since the processor keeps whatever it used most recently in the cache. What you can do is make the inner loop of your most computationally intensive section of code small enough that it can fit in the cache entirely. You also want to write it so the working set of your data will also fit in the data cache completely.
--
Rules of thumb should not be taken for the whole hand.
|
|
|
|
|
Thanks. Does that also mean I can't manipulate the cache if I'm writing unmanaged application using language such as unmanaged c++.net?
chew
|
|
|
|
|
What kind of performance benefit do you think you'll get over the Windows Task Scheduler and the on-chip Cache Manager?
More importantly, without regard to its feasibility, what would it cost you to develop such a mechanism versus it's best POSSIBLE performance benefit? (Assuming there are no side-effects on the rest of the system, of course)
Now, recalculate that cost, throwing in developing fixes for the inevitable problems something like this will generate.
Is it really worth it?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi,
Pardon me. I've yet to develop an application that needs to take into consideration on windows task scheduler and on-chip cache manager. I don't have any comment on that. I was told it will be faster to move data from L1, L2 cache. I'm not sure how significant in term of performance. Do you think you can enlighten me from your experience?
Thanks,
chew
|
|
|
|
|
The last time I saw that little trick being used was under DOS way back in the day. I don't see any possible way of doing it under Windows. At least that has any decent performance benefit. Remember, your application is only a few threads running in a sea of a few hundred of them. Back under DOS, your app had total control of the entire system. Under Windows, that's never the case. If you try and monopolize even a quarter of either cache with your own code and data, what impact is that going to have on the rest of the system and applications that are running?
Minimizing cache swaps for your code/data means that other code/data are going to get swapped more often. So great! You get a performance benefit for your app, but you can only get that benefit by taking the performance away from something else. In my book, that warrants uninstalling your app.
I'm not your enemy here! Your boss is! Seriously, does he know what the cost of even attempting to develop such a solution would be?
Is minimizing cache swaps going to be the best performance benefit and use of that money? No, it's not. The thing that slows your app down FAR more is the time your app isn't even executing any code because the single processor machine is executing hundreds of other threads. If you can increase the priority of your application, your threads can get back to the top of the scheduler sooner and spend less time idling. Now that's easy to do with the Thread[^] class. But like I said, you can't get a benefit for free.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Thanks again. I'll keep your advice in mind.
chew
|
|
|
|