C# - Retrieve And Zip Up Word Docs From SQL Server

Apr 4, 2011

I have an asp.net app that uses a SQL Server 2005 database to store word documents. One of the application requirements is that when a user clicks a button, the system retrieves some number of word documents from the db, zips them up in memory and allows the user to save the zip file to disk.

Is there a zip library that provides the ability to zip up files in memory? The few that I've seen read from the file system.

View 3 Replies


Similar Messages:

C# - How To Display Size And Icon For Pdf And Word Docs

Oct 13, 2010

I have webpages that contain links to word documents and pdf files. For each link I want to display the file size and an icon showing what the file type is.

I'm thinking the best way to do this would be with CSS? Can anybody give me an example of how to do this?

View 1 Replies

Web Forms :: How To Open Word / Excel Docs In New Window

Oct 13, 2010

I'm trying to open Word & Excel docs in a new browser window. The windows opens and then closes straight away. I think I may need browser plugins. Can someone provide some advice on how I can achieve this?

Here's my code:

From calling page:

[Code]....

From new page:

[Code]....

View 1 Replies

Html - Programmatically Generating Editable Word Docs?

Jun 25, 2010

The purpose is to generate proposal documents that can manually be edited in Word after the fact, but before sending them out to the customers.

Much proposal content would be drawn from existing HTML website content (backing CMS) and also some custom (non-HTML) injection for certain scenarios. Of course the conditional logic could go into server-side ASP.NET to vary the content appropriately.

I'm open to 3rd-party tools if raw manipulation of the Word API is arduous. In fact a good 3rd party tool might be the answer.

View 3 Replies

Security :: Forms Authenication Prevent Word Docs Being Rendered

Nov 23, 2010

I have a .Net 4 web application which has a folder called "docs" which is full of Word docs on the root of the website. The words docs are linked with a gridview in my "admin" section

I only want Autheicated users to be able to renders the word docs in the doc folder. I am finding if the user logs out and they manually type in the url to the Word document it renders the file eg.

www.mydomain.com/docs/something.doc

i have tried putting this in my web.config but did not work for the Word docs. It stops the rendering of .aspx files but not .doc's

<location path="docs">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>

Is this because the .doc extension is not hadled by the .Net framework and that I need to do something to Handler Mapping in IIS7? I would prefer to put all my security setting in the web.config ideally

View 5 Replies

Web Forms :: How To Create Printable Web Forms Using Word Or Excel Docs As A Guidline

Mar 21, 2010

I have been presented with numerous word and excel docs. The goal is to put them online and bind to a database for the fields and also to store data for easy searching and reporting.

Has anyone done anything like this before?

I know the easy solution would be to create a database table for each particula form and also an ASP.net page for each form.

But then there are problems like printing and correct formating so it fits on the page, spaning multiple pages and so on.

And also is there any advice on how to write to PDF straight from the page?

View 1 Replies

DataSource Controls :: Retrieve A Word File From Server Map Path?

Jan 27, 2010

I am following this article [URL]

The code from the article is:

[Code]....

After commenting the lines in bold..I can upload word files too...The article also has

GenerateBrochureLink method...which generates link..but when i click the link to download my word file.i get some zip file...with xml.

How can i download the word file which i have uploaded with the view brochure link in gridview.

View 19 Replies

Web Forms :: How To Store And Retrieve Ms Word Document In Sql Server 2000

Jul 1, 2010

iam using asp.net with c# with back end as sql server 2000 i want to store and retreive ms word document 2003 or 2007 using asp.net with c#...

View 1 Replies

Insert Word Document And Retrieve It

Nov 28, 2010

i want to insert a word document in to database and retrive it ...while retriving it would be better to view in a webpage the doc file. Else after retriving there should be download buttons for each document ...clicking leads to the ordinary document download

View 1 Replies

Controls :: Retrieve And Display Word And Excel Files From Database In Browser

May 7, 2015

How can i display in web browser directly from the database varbinary Office Files (Word, Excel, PowerPoint, and many others like Images), like this example in PDF [URL] ....

View 1 Replies

C# - Use Google Docs In Project?

Mar 1, 2011

How can i use the google docs say like wen i display a excel sheet when the user wants to view that particular sheet or document It should open in google docs how can i do that?

View 2 Replies

Web Forms :: How To Find And Concat Pdf Docs

Jan 15, 2010

I have a web-report listing links to pdf documents. The pdf docs shows up in a new page based on frames in frames. I do not have control on the page showing pdfs.

In the web-report I want to let the user select multiple docs and then send them to print on the client.

View 1 Replies

Convert From Office Docs / PDFS To HTML

Jul 27, 2010

I am currently working on a project where I need to secure access to downloadable files. The solution I want to implement is to have two buttons next to each document. One that says Editable and the other read-only (depending on the users permission they will see one of these or both). The editable will work normally with the browser dialogue opening to say open / save the document. That is the easy part. The read-only button needs to open the document without caching anything (in temporary internet files) on the client's machine for security reasons or give the ability to save it to their local machine.

The best Idea I have for this is to convert the document to HTML on the fly and then redirect the user to this page. We can then turn caching off on the site so the HTML isn't cached (I know they can then right-click and save the HTML or copy the text,etc.. but that is deemed acceptable). Does anyone have an alternative solution than this (or have an easy way this can be achieved)? I don't want to install Office on the web server or pay heavily for a third-party tool like Aspose.

View 2 Replies

How To Make WCF Auto Generate SOAP Docs Like ASMX

Jun 7, 2010

I'm currently writing a web service using WCF in VB.NET.Previous web services I wrote used ASMX but I wanted to learn WCF and so far it's going well. I actually prefer the way WCF does things.One thing I miss however is the way that ASMX used to generate example SOAP requests and responses. It was like getting documentation for free.Is there anyway to auto generate SOAP documentation for WCF?

View 1 Replies

C# - Running Long Process: Indexing 5GB Docs With Lucene?

May 14, 2010

Situation:I have an ASP .NET application that will search through docs using Lucene. I want to run the initial indexing (the index will be incremental after the initial run so there wont be need to index the whole directory again in future). Currently, I have about 5GB of docs (45000files).Problem: My application times out before completing the process. I have altered the TimeOut like this:HttpContext.Current.Server.ScriptTimeout = 200000;but it still does not complete the process.

View 1 Replies

Web Forms :: Create / Show / Edit A Excel File - Use The Google Docs Api Or Any Dll?

Oct 30, 2010

I want create/show/edit a excel file from my asp.net application. All I want is like the working of Google docs. Is there a way I can implement it? Any dll or can i even use the google docs api for that?

View 4 Replies

Localization :: Users To Be Able To Enter An English Word Or A Korean Word In Each Respective Textboxes?

Mar 4, 2010

I have a page with two textboxes (one for english and one for korean)..

I want users to be able to enter an english word or enter a korean word in each respective textboxes...

Now I can only enter english in both of them... Even if my keyboard language is switched to Korean(I have the language pack installed).. I can not type in Korean in the Korean text box....

I thought I could simply change this using something like:

[Code]....

View 1 Replies

Controls :: Automatically Replace Word In TextBox With Word In Database On Button Click

May 7, 2015

I have text box and submit button in my page and I have 2 table 1- WORD table   2-name table in database

when I click on submit button it insert textbox.text in database in Name table

I define some word in my word table like:

Bad
Worst
badly and other words

Now I want if users enter word's that is in Word table when they click on submit button it replace that word with this word-->"GOOD"

How I can do it?

View 1 Replies

SQL Server :: Get Only Two Word In Database?

Aug 21, 2010

i have a feild in database where we store data like

wrkcmt
------
PTPT4
PTPR3
PTPD2

i want only first to word to show in textbox1 like(only PT).

View 2 Replies

Msword - Convert Word 2007 Document To Word 2003 Programmatically ?

Apr 15, 2010

any component or library (preferably open source) that would allow me to convert Word 2007 documents to Word 2003 with ASP.NET?

View 3 Replies

Forms Data Controls :: Export Gridview To Word Doc Using Existing Word Doc?

Mar 25, 2011

I want export gridview data to existing word doc. The word doc is avaliable in my pc.

Is it possible to export data?

View 4 Replies

Controls :: Read And Import MS Word Document To Database Using Microsoft Interop Word Library

Feb 25, 2016

I have QuestionTable.

ID Question Answer1 Answer2 Answer3 Answer4

But I want import from MS Word into table. I have question like this:

Question:   @1.The capital of India.

 Answer:$A) Dushanbe;$B) Moscow;$C) Delhi;$D) Kabul;

@2.The capital of Tajikistan.

$A) Dushanbe;$B) Moscow;$C) Delhi;$D) Kabul;

@3.The capital of Afganistan.

$A) Dushanbe;$B) Moscow;$C) Delhi;$D) Kabul;

Output result:

ID Question Answer1 Answer2 Answer3 Answer4

1 1.The capital of India. A) Dushanbe; B) Moscow; C) Delhi; D) Kabul;

View 1 Replies

Using Microsoft.Office.Interop.Word To Convert Uploaded Word Documents Into Previewable Html Files?

Feb 3, 2010

I'm hoping this is an easy one...I'm using Microsoft.Office.Interop.Word to convert uploaded word documents into previewable html files. I haven't implemented it fully, but I've played around with it enough that I think I have a plan that will work... My question revolves around

[Code]....

I'm not in love with the idea of opening word and closing it everytime there's an upload (which I hope is a lot of the time) I'd like to make this a shared object that loads at application start. I have 2 questions
that go along with this. 1. I imagine that winword could lock up and that would be a problem, right? 2. to save a document I use wordapp.ActiveDocument, this could have an issue as a shared object, right? I think I'm talking myself right out of this...

View 1 Replies

MS Word Mailmerge Like Functionality To Allow Export To Word Document From Web Application?

Jul 5, 2010

I have requirement where I need to allow users to upload a Word document with place holders for certain fields which can be found in the database. This will be their template. For example the place holders might be prepended with @@ or something. For example

Dear @@Title @@Lastname

They then can grab a record and hit export to Word document. This will then let them choose the template. They can select the template and then click continue. I will then get the template and replace the @@Title with the title field in the database for the selected record. I am not sure where to start or what components I need to do this.

From my initial investigation it seems that I can do this with the new open XML standard for Office 2007. So perhaps I should read in the template and save all the contents to a db table somewhere. Then when the use wants to export I get the contents again and then do a search and replace for the @@ placeholders and link them properly. Then save the document to the output stream again which will then bring up the save dialog on their browser.

I am using ASP.Net MVC and am in a hosted environment. I was also maybe contemplating dynamically creating a new View type and dynamically creating new views when the user uploads a template. Not sure that this approach will work though.

View 2 Replies

Web Forms :: Open Word Document In Word Program Not In Browser

Jan 11, 2011

I have a word document which opens in a web browser using ASP.NET 2.0 this is the code:

[Code]....

THIS WORKS, PROMPTING THE USER WITH "OPEN" "SAVE" "CANCEL" OR SOME USERS WITH "SAVE" "CANCEL" DEPENDING ON USER INTERNET SECURITY SETTING. BUT FOR SECURITY ISSUES, MY BOSS WANT THIS WORD DOCUMENT TO BE OPENED IN WORD PROGRAM. (MICROSOFT WORD 93,97 ETC) IS THIS POSSIBLE....? OFCOURSE SAVING THE FILE IS OKAY, JUST OPENING THE DOCUMENT SHOULD BE NOT BROWSER.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved