I need a script that will allow someone to upload a .doc file, automatically convert and save the file to a pdf,bmp,png or other

I need a script that will allow someone to upload a .doc file, automatically convert and save the file to a pdf,bmp,png or other 

 or are there any programs that will monitor a directory (say checking every 10 minutes) to see if there are any doc files and then concert into pdf, html,bmp,etc...

0
samuel
6/3/2007 8:20:49 PM
asp.net.getting-started 91979 articles. 3 followers. Follow

3 Replies
1056 Views

Similar Articles

[PageSpeed] 53

u could use threading...this is how it goes

Step 1)in any application start function use

Thread t = new Thread (Checkfile);
t.Start();  

Step 2)The function Checkfile

static void Checkfile()
{
    while (true)
    {
      //CHECK FOR FILE HERE AND TAKE NECESSARY ACTION
       Thread.Sleep(50000);
    }
}


Let the game begin!!

Barcode image generation made easy.
Writing an ActiveX Control in C#
Generating Relational Data From XML Datatype -Part 1
Generating Relational Data From XML Datatype -Part 2
Dynamic XML From SQL Server
0
imran
6/3/2007 9:57:12 PM

 A simple scripts not going to do that for you.  DOC files are notoriously tricky to work with when doing conversions, especially when you want more than one output format.  There are specialised products available to help you.  You'd be better off buying one for the time it would take to develop something to do it for you like:

http://www.activepdf.com/products/serverproducts/docconverter/

Regards

John 

 

0
John
6/3/2007 10:52:22 PM

or are there any programs that will monitor a directory (say checking every 10 minutes) to see if there are any doc files and then concert into pdf, html,bmp,etc...

since you said it's every 10 minutes, i also suggest you considering windows service. which you can find more information at: http://www.codeproject.com/dotnet/simplewindowsservice.asp (a very simple and clear one)

sure you can also you muliti-thread as imran.nathani has said above, it should be able to solve your problems. Good Luck!

 

Hope my suggestion helps :)


Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
0
Bo
6/4/2007 2:48:17 AM
Reply:

Similar Artilces:

file uploader save file on server and in database and upload this file on client
hi,i have a file uploader control user can attach files (.rar, .zip, etc) and store file folder and path in database. and another user can click of attach link and can download that file. how can i do this please solve out this problem. you can find your problem solution in this link and you can store the file name in your database server.http://www.aspnettutorials.com/tutorials/network/net-fileupload-aspnet2-csharp.aspxPlease Mark as Answred If This Blog has Helped You.RegardsMitesh Darjihttp://www.indianic.comhttp://www.mitatdotnet.blogspot.com As always there are many ways and which ...

Convert Or Save Pdf file to html file
I want to convert or save pdf file to html programmatically through asp.net 1.1 & C#.Anyone knows solution please let me know coz I do a lot of search but didn't find any kind of solution.  Thanks & regards.   hi, check this link, http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/d835c1c9-0d04-4cb9-8d08-39e68ee911fd/...

convert .doc file to .pdf file in C#
Hello,I need to convert a .doc file to .pdf file in dot net using C# . Any help will be highly appreciated. Thanks Hello, Please check the link below. http://www.codeproject.com/KB/cs/sertf2pdf.aspx Hope it will help you, do let me know if it helps you.S.SRIRAM Thanks for your reply but it is not working.  Hello, What problem you r facing?.. Alternate links are here. .... http://dotnetf1.blogspot.com/2008/07/convert-word-doc-into-pdf-using-c-code.html Please let me know if you still face issues,  S.SRIRAM Hi, Based on my understanding, you should belon...

4Guys Upload File includes PDF/DOC files
 I'm using the example File Upload Code seen here:http://aspnet.4guysfromrolla.com/articles/120606-1.aspxThis code is great however I want to modify it to dynamically allow any file format. At the moment I have adjusted the code to recognized PDF's and DOC's (see bold text in code). The problem is when I retrieve the files from the Database, the image files exist and show properly, the PDF's work as well, but the DOC files do NOT work.The DOC file download link prompts the user to download the .ASPX file NOT the named DOC file. How can I setup the DOC's do...

COnverting image file into PDF file in C#.NET
hi friends, i have a problem in creating a PDF file from an image file. first of all pls clarify what is the internal concept in converting to PDF file. if nay one knows pls mail me the related code if you find any solution pls mail me at spend5mins@yahoo.com thank u all hari babu...

png file to bmp file converting is decreasing quality
Hello. This is a spesific phenomenon, thus a new thread about it. When I convert a png file to a bmp file with a thirdparty program that has TransparentColor kinda pink (RedGreenBlue R:255 G: 0 B:255), then it leaves the glyph with a thin frame of light grey pixels surrounding the profile. This makes the glyph look more like high resolution when the size is small, like 32x32. With the code shown below, theese light grey pixels surrounding the glyph are replaced with the same darker color as the rest in the area and the transition out to the transparent color is much harder, makin...

Convert Gridview Data in to PDf file. or Convert report data in pdf file
 Hi have problem to convert Gridview data into PDF file..let me know is there any solution or open source components..Regards Rambhopal Reddy EPlease remember to click “Mark as Answer” on the post that helps you, and to click “Unmark asAnswer” if a marked post does not actually answer your question. Friend, Check this thread for soultions http://forums.asp.net/t/1164793.aspx and then to http://www.aspnetworld.com/articles/2004011801.aspx   Good luck!     Please Don't forget to click "Mark as Answer" on the post that helped you.This can be benef...

File Upload
Hey I've got a fileUpload control on an aspx page that works fine for the accepted file type, .rpts, and brings up the correct error message for not allowed extensions such as .exes and .jpgs. But .pdf files should cause an error message to be displayed, as only .rpt files are allowed to be uploaded, but instead it brings up a blank page like a web500 page. Is there a known bug when attempting to upload pdf's?   Just in case,here's the only relevant code attached to the control:   If uploadFilename.EndsWith(".rpt") = True Then 'ensures only .rp...

Convert Word DOC File to Adobe Acrobat PDF file
Hello, Does anyone knows a component to convert an Word DOC File to Adobe Acrobat PDF file? I am creating a web site where people upload word  Word DOC files to the server. I need to convert the Word Doc files into PDF files as they are uploaded. Thanks, Miguel shapper--Regarding this... shapper wrote:...Does anyone knows a component to convert an Word DOC File to Adobe Acrobat PDF file?......I am creating a web site where people upload word  Word DOC files to the server. I need to convert the Word Doc files into PDF files as they are uploaded.......one should ...

PDF files and DOC files
Name: Jeff Kopacz Email: Jeffkopacz_at_mchsi.com Product: Firefox Summary: PDF files and DOC files Comments: When using Firefox and have to view a pdf file or Doc file I have to have Adobe Reader or Word started before selecting the file or the computer will lockup. I am using XP and Firefox 1.0.7. If I use either IE or Netscape they will open properly. This has recently occured with either version 6 or 7 Browser Details: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 ...

Convert file when upload file
I want convert all file to wmv file when upload file.thank you  never worked on this... but can only suggest few things.. upload your file.. convgert it in to stream, and try to find some WMV API where you can create WMV from a stream data. if success thren fine or else throw exception , most probably inapropriate data."Mark as answered if you feel this helps you""Curiosity is Bliss"Regards,Ravi Kant Srivastava(Sr. Software Engineer)Connexxions Business MumbaiINDIA thank you,can you  demo code? may be this will help you http://www.codeproject.com/KB/aud...

Converting a png file to ico file via bmp does not keep the transparency of the image.
Hello. With the code below I convert a png file to other formats. The problem is the icon conversion. When I try to use the icon file as an Application.Icon for a project, it does not longer have the transparency when pop up on the task bar. What is wrong with the icon part of this code? [Code Delphi] procedure TfrmH.ConvertPNG(const Source, DestJ, DestB, DestI : String); var png: TPNGImage; bmp: TBitmap; jpg: TJPEGImage; ico: TIcon; ImageList: TImageList; begin png := TPNGImage.Create; bmp := TBitmap.Create; jpg := TJPEGImage.Create; ico := TIc...

Problem with converting .doc file to .pdf file and also filling it with some details using iTextSharp
Hello Mate,                     I am having a problem in converting a .doc file in to .pdf file using iTextSharp.dll .And also i would like to wirte some details in to the form. the problem is the conversion of .doc to .pdf file is not working and also filling in to the converted .pdf file is also not working.Could you please tell me a solution?   This is my code  in this below method i am passing the full path of an existing .doc file public void Convert_And_Fill(string filepath...

How to save Uploaded .pdf files to an sql database filed ? Please I Nedd Help It Very Urgent
I created insertdatafilelink.aspx to Insert an Uploaded .pdf files to a filed then when I run insertdatafilelink.aspx it inserts all data to all filed and Uploads the .pdf files to the folder Documents put it doesn't save the .pdf files to the fied file_link. This is the code I used Please I want to know where I made the mistake. 1-This Is the insertdatafilelink.vbPartial Class Insertdatatfilelink Inherits System.Web.UI.PageProtected Sub New_mail_system_ItemInserting(ByVal sender As Object, ByVal e As DetailsViewInsertEventArgs) _ Handles New_mail_system.ItemInserting 'Refere...

Web resources about - I need a script that will allow someone to upload a .doc file, automatically convert and save the file to a pdf,bmp,png or other - asp.net.getting-started

Piccolo Automatically Sends Users Prints Of Their Photos On Facebook, Instagram
... a popular day for debuting Instagram applications and services, as startup Piccolo announced its beta launch, aimed at allowing users to automatically ...

Facebook Status Update Tagging Now Automatically Suggests Matches for People, Pages and Other Content ...
Facebook has just changed its status update tagging tool to automatically display a drop-down menu of friends, Pages, events and groups you might ...

Meekan - schedule meetings and events automatically on the App Store on iTunes
Get Meekan - schedule meetings and events automatically on the App Store. See screenshots and ratings, and read customer reviews.

Does Google see automatically generated content as a bad thing? - YouTube
Does Google see automatically generated content as a bad thing (i.e. spam)? If I publish uncopyrighted content on my site that is available from ...

Emailing porn at work not automatically sackable, court finds
The federal court has upheld a ruling that found emailing pornography in the workplace is not automatically a sackable offence.


Emailing porn at work not automatically sackable, court finds
Australia's federal court has upheld a ruling that emailing pornography in the workplace is not automatically a sackable offence.

Shazam iPhone app now listens for music, TV shows automatically
Shazam has updated its iPhone app to tag songs, TV shows and more on its own, no longer requiring users to open the app and tap a button.

App of the day: Human for iPhone automatically tracks your movements
Human for the iPhone is an activity tracker that automatically distinguishes between different types of movement.

iPhone 5 automatically rotates using Cycloramic App. - YouTube
[NEW VIDEO] Cycloramic 2.0 update teaser vid with panoramic photo preview: http://www.youtube.com/watch?v=cjHUID07xs4 Cycloramic has been Awarded ...

Resources last updated: 11/28/2015 4:38:06 AM