can we convert doc file to pdf file on ftp server by asp.net
application using aspose.words product? if yes could you tell me how and what will will be the code for that?
Hi there,
Thank you for your interest. Yes, you can easily convert Word document to Pdf format. I will suggest you to visit documentation here.
In case of any further assistance, please let me know.
I know this, but it needs physical path of file.
I want to give it ftp path. How can we do that? because my files are on ftp server .
like
Dim doc As New Document(MyDir & "Document.doc")
Mydir=ftp path eg ftp://myservername/myfolder/myfile.doc
this path is not accepting by doc object. can you tell me is any other way to do this in this product. my files are on ftp server and I want to convert(pdf format) them from (.doc format) on the daily basis.
please reply fast. I have to make decesion to buy this product or not…
thanks…
Hi there,
Thanks for the inquiry and sorry for delay. I’m afraid. There is no direct way to achieve that within Aspose.Words. Anyway, you can save the file on local path and then upload it.
How to upload file with FTP:
https://docs.microsoft.com/en-us/dotnet/framework/network-programming/how-to-upload-files-with-ftp
After uploading, you can delete the saved file by using the below code.
File.Delete(filepath);
How to: Copy, Delete and Move Files and Folders:
https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/file-system/how-to-copy-delete-and-move-files-and-folders
I hope, this will help.
thanks. for your reply …
I have another question can we print the doc file of pdf file which are on ftp server without downloading that file on local computer. like
document.print("ftp://myservername/myfolder/myfile.doc")
My application is website (asp.net) not standalone.
thanks in advance…
Hi there,
Thanks for the inquiry. I’m afraid. There is no direct way to achieve that without downloading file on local computer. First, you need to load file in document object whereas acceptable solution is file stream or local path.
Hi there,
Just a clarification, you can download the bytes of the document from the site and create a new stream from these which can then be loaded into a new Aspose.Words document. You can then print as normal. All of this is done in memory without the use of the disk.
Thanks,
but it looks for printer on server machine not on client machine. is it any way that client can print on his machine?
Hi there,
Thanks for this additional information.
Do you mean you want your server-side ASP.NET
application to send a document for printing to the client’s machine? From memory, such a task is not directly possible from within ASP. Instead you may be able to achieve this by sending the client a page with the document pages rendered to image. You also need to supply Javascript which activates the print dialog and prints the page on the clients machine.
Please let us know if this helps.
Thanks,
I was testing the merging doc functionality of Aspose.Words component of .net platform. when I used the table of content functionality, this component inserting table of component on first page and their references on related pages in red color with following message.
Evaluation Only. Created with Aspose.Words. Copyright 2003-2011 Aspose Pty Ltd.
Manual:-My Manual
Chapter:-Chap 1
Policy:-P2
Document:- Doc1.doc
Evaluation Only. Created with Aspose.Words. Copyright 2003-2011 Aspose Pty Ltd.
My question is that if I will use the licenced version still the references will be in red color? And still it will say Created with Aspose.words.
Please reply soon so I can make decision in timely manner
Hi Bal,
Please accept my apology for delayed response. Kindly note, your query has been replied in following thread.
https://forum.aspose.com/t/weired-behaviour-of-aspose-words/56325
Please feel free to contact us for any further query
Best Regards,