Hi,
Is there a way to compare PDF, Word Document, Excel using C# like WinDiff
utility that compares text file and display the result with the modified text
in both the document?
--
Thanks,
PS 2 5695
You can do it, but you will have to program different formats in unless you
are just comparing bits. A line in code can easily be compared by walking
the document and comparing lines. But this is code in each of the apps you
are talking about.
Let's take word for an example: To compare, you will have to read lines as
Word lines, not as lines in the file created by Word. Now, if you are using
Word 2007, you can actually compare XML, as that is the storage mechanism
(also true for Excel 2007). Assuming you are talking older versions of Word,
you then have to stoke up the Word libraries to read through the lines.
PDF presents the same problem, as what you see in the final document (viewed
in Reader, for example) is not what you will see if you open this in
notepad.
--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA
Subscribe to my blog http://gregorybeamer.spaces.live.com/lists/feed.rss
or just read it: http://gregorybeamer.spaces.live.com/
*************** *************** *************** ****
| Think outside the box!
|
*************** *************** *************** ****
"PS" <PS@discussions .microsoft.comw rote in message
news:0C******** *************** ***********@mic rosoft.com...
Hi,
Is there a way to compare PDF, Word Document, Excel using C# like WinDiff
utility that compares text file and display the result with the modified
text
in both the document?
--
Thanks,
PS
Understood your point, do you have any example for the same?
Are there any legal issue if we use the PDF, Word, Excel library in .Net
application?
--
Thanks,
PS
"Cowboy (Gregory A. Beamer)" wrote:
You can do it, but you will have to program different formats in unless you
are just comparing bits. A line in code can easily be compared by walking
the document and comparing lines. But this is code in each of the apps you
are talking about.
Let's take word for an example: To compare, you will have to read lines as
Word lines, not as lines in the file created by Word. Now, if you are using
Word 2007, you can actually compare XML, as that is the storage mechanism
(also true for Excel 2007). Assuming you are talking older versions of Word,
you then have to stoke up the Word libraries to read through the lines.
PDF presents the same problem, as what you see in the final document (viewed
in Reader, for example) is not what you will see if you open this in
notepad.
--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA
Subscribe to my blog http://gregorybeamer.spaces.live.com/lists/feed.rss
or just read it: http://gregorybeamer.spaces.live.com/
*************** *************** *************** ****
| Think outside the box!
|
*************** *************** *************** ****
"PS" <PS@discussions .microsoft.comw rote in message
news:0C******** *************** ***********@mic rosoft.com...
Hi,
Is there a way to compare PDF, Word Document, Excel using C# like WinDiff
utility that compares text file and display the result with the modified
text
in both the document?
--
Thanks,
PS
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Nasos Makriyiannis |
last post by:
Hi,
I'm new to XSL and I was wondering if there is a string-compare function
available. I am using the following IF statement but it does not seem to be
working:
<xsl:if test="boolean(normalize-space(name(..))='Stateflow')">
....do something...
</xsl:if>
<xsl:if test="boolean(normalize-space(name(..)) != 'Stateflow')">
|
by: Neil |
last post by:
Folks,
I've got a problem at work, and I'm hoping that someone out there may
have had something similar (although I doubt it!) or may be able to
offer some advice.
I'm in the process of designing a system that interacts with a third
party external firm. Basically, they will send us an XML document (the
quote request) via SOAP that contains a load of info with all the
information required to make an insurance quote. Our company will do
|
by: Muqu |
last post by:
hi,
I am trying to compare one nicely written html file against another
program generated one, whose formatting isn't very appealing to human
eyes. I am tuning the code so that two htmls will match but there some
are always some difference.
Is there any tools out there that can compare the structure, instead
of content, of two htmls?
|
by: Ganesh Muthuvelu |
last post by:
Hello,
How can I compare or visually check the differences between two XML schemas.
Let us say I have two files like "version_1.xsd" and "version_2.xsd" , how
would I programtically find out the differences between these two XSD files?.
Is there a way to do this in .NET?
Thanks,
Ganesh
|
by: Twinkle |
last post by:
HI All,
I have a problem..How to match two same word files. if someword missing in second files then it should be highlight by color change.
| |
by: =?Utf-8?B?SWtlciBMbGFub3M=?= |
last post by:
I have to xml documents. I want to compare them and show them in two treeview
controls.
The one on the left is the new version of the document and the one is the
right is the old version of the same document. So if I have a node in the new
one that it is not in the old one it means it's has been added and if I have
a node in the old one that it is
no tin the new one it means it's has been removed.
I want to show the differences...
|
by: seshu |
last post by:
Hi Everybody
I have a piece of code to compare two documents using vb.net but the problem here is it is comparing the whloe sentence but not word by word how to compare word by word
The code i wrote is like this
Dim objword As Word.Application
objword = CreateObject("Word.Application")
With objword
.Documents.Open("C:\Seshu is a bad boy.doc")
...
|
by: super.raddish |
last post by:
Greetings,
I am relatively new to, what I would call, advanced XSLT/XPath and I
am after some advice from those in the know. I am attempting to figure
out a mechanism within XSLT to compare the difference between two
source documents and output node-sets which are "different" (changed
or new) to new XML files using xsl:result-document
To describe the problem I have provided some example data below along
with my a portion of my current...
|
by: =?Utf-8?B?RGFuaWVsIERpIFZpdGE=?= |
last post by:
II want to compare how many seconds there are between files. If the files are
within a 1 - 10 second range I want to copy them to their own folders. What I
have so far is a couple methods that take in all the files in a directory /
subdirectories and sort them by their lastWriteTime stamp:
Dim flist As List(Of System.IO.FileInfo)
Private Sub writeDirectories(ByVal ParentPath As String)
For Each sDirectory As String In...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |