Asp .Net Word Automation [closed] - asp.net-mvc

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
We have a situation where we have to
Open up a Word document(template)
Get data from DB and merge it to that document
Give the users ability to add or modify sections in that merged document
finally save the document (which needs to go back to the DB)
I know that atleast the first two is possible. But is it possible for 3 to happen through a web site?
Any ideas or information or third party tools to accomplish this is much appreciated.
Thanks,
Raja

THe Aspose component is pretty good for being able to manipulate docs through an API:
http://www.aspose.com/categories/.net-components/aspose.words-for-.net/default.aspx
Alternatively if you are using the docx file formats you can read up on the Office OpenXML format and make the changes directly to the file.

In general, you should avoid automating Office from server-side apps.
A better approach is to use OOXML.
You can use the packaging APIs to produce a word file, or... you can produce the "template" .docx file in Word 2007/2010, then in the ASPNET app, open the .docx with a zip library like DotNetZip, modify the portion you need to modify (it's an XML doc) then re-zip and you have a valid .docx file.

Related

iOS Prefix file: Including NSManagedObjects (Core Data generated classes) [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
Recently I got up in a discussion with someone about whenether or not to include NSManagedObjects into the iOS Prefix file (.pch)
I did that because it will speed up development time (e.g syntax completion works for all model names etc, build times are a bit faster)
Currently we have ~70 different tables (and thus ~70 different NSManagedObject classes)
I made a shell script that will list these files and create a header called AllModels.h that will import those tables. Then I include that as a #import in the pch file. So now, we can use all of the tables in our entire project.
He said that we cannot have that anymore because it's a bad practice and I disagree. I do not know if I am right or wrong actually. In my mind yes I feel am right, but I try to get a bigger view over here about this situation, so I would like to hear from you guys, what's better? Including the NSManagedObject you need in the header of the file you are working in, or include them at once in the pch file?
Thanks for your time! :)
read http://qualitycoding.org/precompiled-headers/
in general it isnt wrong to include MOM headers there I'd say..
I'd wrap the stuff in my own "PROJECT_MOMs.h" and include it in the pcm + in the files that really need the MOMs, that way you get the speed but don't rely too heavy on the pch

How to find the file format from binary data [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
We have a Oracle 9i database and OrderDetails table which has a column to store binary data for product images.
These images can be viewed only using a 3rd party tool. I have no idea which 3rd party tool. and I have no idea of the format of the image.
Is there anyway from the binary data we can find what format is the image?
Thanks
file or libmagic is a good place to start.
From your description it isn't clear whether the third-party tool is needed to access the data or to display it. It is entirely probable the data is simply JPG, BMP or PNG and the tool is basically an SQL frontend. To verify this try to write out the binary data to a file (being careful to tell your program it's binary data) and then try to open it with a standard image tool. A decent image editor will ignore the extension and sniff the data to get the format.
If you verify it really is a standard binary image you have two options:
Batch convert to JPEG, saving
yourself the effort of learning the
format.
Find a tool that tells you the
format (there are many including
Imagemagick identify and even
online tools)
Yeah, read about headers of JPG, PNG, GIF and other popular image formats and try to recognize their headers in your data.

Parsing XML in iOS? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I need to parse simple XML coming from my webserver and store this in database.
How do I do the same?
Please have a look at Touch XML, a Objective-C framework for reading and writing XML. It's usage is similar (drop-in replacement) for Apple's NSXMLDocument (which is not available for the iPhone SDK).
Apple has two built in solutions for parsing XML data on the iphone:
1) Apple has an objective-c implementation of an XML parser called NSXMLParser. See documentation here.
2) Apple also has a C based implementation of an XML parser called libXML2. See documentation here. - scroll down to see section on XML support
At the end of the article you can find a full project example.
http://www.hivestudio.cat/index.php?option=com_content&view=article&id=60:xml-parser-for-iphone&catid=35:technical-note-category&Itemid=76
you can check here ,might be it will help you.
http://homepages.ius.edu/rwisman/C490/html/nsxmlparser.html
Check out http://www.tbxml.co.uk for a super-fast, lightweight, easy to use XML parser!
The above mentioned Touch XML, seems to be discountinued. KissXML is an alternative. It is based on Touch XML, but has more features.
GDataXML could also be an alternative, its developed by Google.

Is there a service which will let me create a snippet of a webpage [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I am looking for a way to get the essence or the most important aspect of a webpage? If I provide a URL, is there any external service which can accomplish this? I am not looking for snap.com like service as it provides a snapshot.
I might be willing to even implement such a system on my own. For beginning I do not want to put excessive effort, but rather would love to able to get some basic results. Are there any thoughts on how I may approach this problem?
You can try Yahoo's Term extraction service
Update 02-May-2012
Yahoo has release a new Content Analysis Web service which will be replacing the Term extraction service. It can be invoked by syntactically sweet YQL as shown below
select * from contentanalysis.analyze where url='http://www.cnn.com/2011/11/11/world/europe/greece-main/index.html';
There is also AlchemyAPI which offers a weservice which may serve your purpose.
By snippet, do you mean like a quote that sums up the entire page you want to link to?
So if snap.com isn't a fancy, what about the entire page? For verbosity's sake? You could try out BackupURL if you want like a cache of the entire page of the site instead just a snapshot of a portion of it.

does a good swf to exe wrapper open source exists? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I think the best part of flash is the possibility to create not squared user interfaces, so I like the idea to create desktop apps using flash. I know AIR is for that but it doesn't allow real access to OperatingSystem apis and dlls and the commercial options are kind of difficult to customize.
You can try ScreenweaverHX:
http://haxe.org/com/libs/swhx
It's the Haxe-based successor of the old Screenweaver. However, it's not as simple as the old version used to be. Most likely you need to take a look to the basics of Haxe and Neko, the 2 technologies it's based on.
There's another project on top of SWHX that it's called HippoHX. It aims to "complete" SWHX providing that extra functionality you might miss (simple ActionScript APIs and a GUI). However, it's in its early stages:
http://hippohx.com
DISCLAIMER: I'm the owner of HippoHX, so my point is obviously biased.
As far as I know SWHX is the only Open Source alternative at this point.
Try flajector. it's powerfull converter from flash to exe. You can to develop your application using AIR. And then you can convert it into desktop application .exe

Resources