|
Hi all,
I have an scenario, I have to merge some dynamic content (to say data retrived from DB) in an existing word document without losing the existing content in that document. So that when ever there is a new conent, i use the same word document file and append my content. Please suggest me how to do this, else provide me some URL to learn and do using C#.
Thanks in advance
Know is Drop, Unknown is Ocean
|
|
|
|
|
|
Hi everyone,
Suppose that you have some partly damaged file that you want to copy to somewhere else reading only the good bytes and ignoring the ones that can't be read "getting over them".
I'm using a simple StreamReader in a loop and ignore IOExceptions as they occur but it doesn't work and go very wrong once a cyclic redundancy is encountered..
What would you use?
|
|
|
|
|
You should probably use a FileStream[^] as it allows you to read the file at the pure byte level. in this way you are free to interpret the data without any assumptions made by the framework. You can also position your file pointer randomly hence avoiding portions of data that you know are corrupt.
It's time for a new signature.
|
|
|
|
|
Thanks, I should try that.. Excuse my late reply and most importantly the vote.
Cheers,
Muammar.
|
|
|
|
|
No problems with late reply, and thanks for the feedback. I hope it works out for you.
It's time for a new signature.
|
|
|
|
|
Hi Code Gurus
I need to load the PDF document inside the c#.net Application. I tried with PDF Viewer. If i did any changes in PDF form Field i need to track that also. This is not possible in PDF Viewer. So i need any other Control or Way to load PDF inside the Application.
Please send me the Code snap or project link to resolve this problem.
Thanks in advance..
With Regards
"FAKEER"
|
|
|
|
|
Fakeer wrote: Please send me the Code snap or project link to resolve this problem.
Well Fakeer that is not going to endear you to the forum, asking for the code is frowned upon.
So if you need to edit the PDF you need a PDF EDITOR not a viewer. There are plenty of them around. try doing some research[^]
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
|
Here is a C# pdf viewer sample developed using a third party sdk called Black Ice.
My signature "sucks" today
|
|
|
|
|
Is there option to convert from System.Linq.IQueryable to DataTable with some sort of ToDataTable() function, and avoid looping? Both approaches on
http://www.c-sharpcorner.com/UploadFile/VIMAL.LAKHERA/LINQResultsetToDatatable06242008042629AM/LINQResultsetToDatatable.aspx gives me similar speed efect, but I need speeder. Actually I am wondering if there is something like http://msdn.microsoft.com/en-us/library/bb386921.aspx but with using System.Linq.IQueryable instead IEnumerable? I have few functions that sends System.Linq.IQueryable parameter to this function expecting DataTable[] in return.
Best Regards,
Zex
modified on Wednesday, May 26, 2010 6:26 AM
|
|
|
|
|
I did a search on the internet and found some posts.
This post might help you - it is not the exact solution you are looking for but is similar.
My signature "sucks" today
|
|
|
|
|
|
Thank you all, I have similar approach like one in http://peteohanlon.wordpress.com/2008/01/04/extending-linq/, and it is works. But I wonder (because of speed performance) about something like http://msdn.microsoft.com/en-us/library/bb386921.aspx (Creating a Custom CopyToDataTable<T> Method). They said "The existing CopyToDataTable methods only operate on an IEnumerable<T> source where the generic parameter T is of type DataRow. " but wondering is there something equivalent to CopyToDataTable method for IQueryable<T>? Probably not, but maybe somewhere someone offers equivalent method...
I have working function now, but looking for speeding it.
|
|
|
|
|
|
|
I have a project needs to help of people.
My project is : Neural networks use some character recognition ("0", "2", ..., "9") with the character of the image was prepared on the computer as different fonts.
appreciate the early response of people.
thanks.
|
|
|
|
|
read "how to get an answer" on this page. Then try again. Or not.
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read formatted code with indentation, so please use PRE tags for code snippets.
I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).
|
|
|
|
|
And what have you implemented so far?
My signature "sucks" today
|
|
|
|
|
From the looks of it, just that post.
|
|
|
|
|
Refer to sig
"I need build Skynet. Plz send code"
|
|
|
|
|
if (DateTime.Now() < JudgementDay)
{
ActNormal();
}
else
{
DestroyAllHumans();
}
Voila, my fee is a billion pounds mwahahaha~
|
|
|
|
|
Hi guys,
I've an application and service, whereby when the application exits, the service will open up the application once again. It will be opened as the local account user by the service, instead of system. But somehow the temp folder is pointed to c:\windows\temp instead of the current user's temp folder. This only occurs in Windows Vista and Windows 7, probably due to the new security settings. Can anyone provide me with some help? thank u in advance for your support..
|
|
|
|
|
It's because the service wasn't installed under the user's account (it's probably using System, or something like that). Vista and Win7 are more strict about crossing user boundaries.
What you *could* do is make change the app to put its data file in the common program data folder (I forget the exact SpecialFolder to use, but I know you can do it). At that point, any program should be able to get to it.
One possible caveat to this approach is that you may have to write your own code to access the file instead of using the built-in Settings object.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Hi all,
I'm trying to parse the content of a page downloaded into a WebBrowser control.
I know that I can access the content of a web page accessing the Document.Body.InnerHtml element, but I cannot access the result of an Ajax request that the page makes after (I think) the completion of the page download. I.e., I can access the static content of the ajax request result (the ones contained in the static html page), but I cannot access the dynamic content for example shown into tooltips that appear when I pass the mouse over a control of the page.
I know from the code that is contained into the DocumentStream that the dynamic content (a table) has been already downloaded in a variable (I know its name) and reused each time I pass a mouse over a control of the page using the onmouseover event, but how to get the content of the table?
May I invoke (from C# code) one of the java functions already present in the Document code, that are used to generate the content of the page starting from the table variable? These functions are normally used from the dynamic page to get the html result that normally is used to fill (referring to the example before) the tooltip that appear when I pass over the controls? I could use this functions, if possible, to extract the content of the table that I need.
Any suggestion?
Thanks, any help is very appreciated
Leo
modified on Tuesday, May 25, 2010 7:36 PM
|
|
|
|