|
Personally I would go for chaptering or chunking the physical data on the drive, split it up into edible volumes, store it and when print, ghu forbid, put it back together.
What sort of data is it that is gb big and requires editing? In a text editor!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hi,
thanks for your thoughts on that.
When splitting up into edible volumes, how would you handle selections across the volumes?
To put things straight - it's not about solving an actual problem. Some time ago, I worked with databases. There is nothing more frustrating than dumping a large MySQL database, just to realize after some hours, that the "CREATE TABLE" statement has been added to the export. Just as an example I've in my mind now.
But there is no customer request behind that. It's just an idea, stuck in my head for a few months now, which I'd like to solve.
What I've got so far: If you use the text approach, chunking would be the best option. There is no need to split the files on the drive, but you would need some kind of controller which would manage the changes being made, map them to the chunks and save them if necessary. This would require paging for navigation, because scrolling would simply be to difficult if you need to take the window size and linebreaks etc. into account.
If I want scrolling, I should take the Hex-Editor approach, that is: Set the textfield to a fixed amount of characters per line, and don't care for linebreaks, etc.
I'm still open for more ideas, though.
|
|
|
|
|
It might be worth looking at Memory-Mapped files[^], which would allow you to map sections of the file into memory. No idea how well that would fit with your editor, though.
Once you've finished, this sounds like a good topic for an article!
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Hi Richard,
thanks for your comment. I've heard of MMF, but haven't used it before. Sounds interesting, although that wouldn't solve the scrolling part.
And thanks for the hint in terms of an article. I might consider that, why not.
|
|
|
|
|
For the scrolling, as soon as you have more than a thousand line or so, you won't be able to reach each line by using the scrollbar so making approximations might be enough...
Or you can divide the file into blocks of a few KB and keep some information like the number of lines in that block or the actual size on screen once the information is known. In practice, I think that using approximations and make adjustment as required later could be more than enough.
And you can probably buy already made editor component that works with big files.
Finally, if files are so large, even if technical problems are solved, it would still be hard to use in many scenarios.
Philippe Mori
modified 25-Mar-15 7:53am.
|
|
|
|
|
I guess I go with the approximation approach, that sounds kind of reasonable.
|
|
|
|
|
Hi,
I was hoping someone can point me in the right direction.
I have developed a document reader based around XPS which allows the users to draw an image with the mouse on top of the paginated document in a Canvas. Now this works great in the original orientation (Portrait).
But as soon as I perform a RotateTransform (90 or 270 degrees) on the Canvas for Landscape pages, then attempt to draw again, the image is in the wrong orientation because the left and top of the Canvas has shifted.
Now I can do a RotateTransform on the image before the drawing begins, but on the mousemove event it's going in the opposite direction.
Is there a way to move the left and top of the Canvas to a new position after the RotateTransform?
Thanks
|
|
|
|
|
How to insert data in database using mvvm in WCF
|
|
|
|
|
I'm sorry, but your question is far too broad to be able to answer in a simple forum. Which particular part of this are you having a problem with? WCF? Saving to a database? The principles of MVVM? Some other issue? Remember that we don't know what problem you're actually trying to solve or what your level of knowledge is, so you have to help us by focusing in on the issue you're having a problem with.
|
|
|
|
|
|
Just try to understand MVVM rather than going through some code. Once you can understand MVVM, You will get to know how to do that.
|
|
|
|
|
Hi,
Please picture the below points (WPF-> WCF-> DataBase)
1. MVVM is an architecture design pattern used in WPF
2. WPF application need to consume a WCF service for performing CRUD operations
3. WCF will contain the logic for performing CRUD operations with Database for that you can use NHibernate, Entity Framework or with simple ADO.net etc
|
|
|
|
|
Good Day All
I have two WPF Pages Page 1 and Page 2. i want to change the a Label of Page 2 from Page 1.
tried to create an Instance of Page 2 in Page 1 and access the label and Change the content property before i explore the Property Solution if there is anyone who has a different solution. please help
Thanks
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa[at]dotnetfunda.com
http://www.Dotnetfunda.com
|
|
|
|
|
Hello Everyone
I'm struggling to solve the problem with my nested UserControl.
When I run the application the main window opens, inside the main window is a button, when I click that button it calls up a UserControl (called Applic).
Inside the Applic UserControl is another nested UserControl called PasswordScreen.
Within the PasswordScreen there is a button called Login, when I press this button to call another UserControl (called SwitchboardView) it is not firing nothing (here is the sample code)
private void btnLogin_Click(object sender, RoutedEventArgs e)
{
Applic ap = new Applic();
SwitchboardView sbv = new SwitchboardView();
ap.MainGridApplic.Children.Add(sbv);
}
Could someone please help me solve this problem, I have been struggling for a long time to solve this problem but I just can't get it around.
Thanks in advance...
Kind regards
Roni
|
|
|
|
|
You have already posted this in QA[^]. You've been here long enough to know our opinion of reposts.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Hi Roni,
I created a WPF with nested controls and its working fine, what i did was
Created 4 UserControls naming - UC1, UC2, UC3, UC4
As per the scenario stated in the question a UserControl is nested in another
The code is as below :-
UC1 XAML:-
<usercontrol x:class="TestWPF.Views.UC1"
="" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns ="http://schemas.microsoft.com/expression/blend/2008" mc:ignorable="d" d:designheight="300" d:designwidth="300">
<grid x:name="MainGrid">
UC1 CODE BEHIND:
private void Button_Click(object sender, RoutedEventArgs e)
{
this.MainGrid.Children.Clear();
this.MainGrid.Children.Add(new UC2());
}
UC2 XAML:-
<usercontrol x:class="TestWPF.Views.UC2"
="" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns ="http://schemas.microsoft.com/expression/blend/2008" mc:ignorable="d" d:designheight="300" d:designwidth="300">
<grid x:name="MainGrid">
UC2 CODE BEHIND:
private void Button_Click(object sender, RoutedEventArgs e)
{
this.MainGrid.Children.Clear();
this.MainGrid.Children.Add(new UC3());
}
Similary for UC3 and UC4
Try it let me if any problems
|
|
|
|
|
|
How to download a excel file in silverlight which is returned from wcf service in form of byte arrays ?
|
|
|
|
|
Sounds doable, so where are you stuck?
|
|
|
|
|
The content of Excel files is specific to Excel, and can only be converted by reading it via ODBC or Excel Interop.
|
|
|
|
|
|
OK, then please answer the question with the details rather than telling me this.
|
|
|
|
|
He didn't ask for something like that. His question makes no sense to me.
|
|
|
|
|
|
I just wanted to tell you for your own benefit (potentially) and clarify it for anyone else reading this thread.
|
|
|
|