Sign In  Sign Up Live-Chat

Revision of that e mail

Last post 05-15-2008, 3:50 AM by alexey.noskov. 26 replies.
Page 1 of 2 (27 items)   1 2 Next >
Sort Posts: Previous Next
  •  07-12-2007, 3:37 PM 83965

    lock [lo] Revision of that e mail

    Maybe that was ambiguous so I will try to be more specific and clear.

    I need the following to be done. Hope you can help me.

     

    to open and close word document.

    to check the document for revision marks.

    to check and strip extended document properties.

    - to check strip document comments

    to check the document for macros ( date macros )

    to check to determine if document has embedded versions

    to check to see if document is of an acceptable type

    to check the file size ( size limit to be parameterized )

    provide and "I'm alive" method ( for us in monitoring the service )

     

    to return page count

    to verify if file with a  .doc extension is a valid word document

    to generate a text file from word document

    to spell check

    to generate a PDF document

    to merge PDF document

    check file extension to prove the extention is accurate

    set the security level of a word document

     

    Thank you.

    Jae choi

     

     
  •  07-13-2007, 12:29 AM 84002 in reply to 83965

    Re: Revision of that e mail

    Ok, I will try to provide tips for your tasks in order:

    to open and close word document

    Supported. Use Document constructor and Document.Save method.

    to check the document for revision marks.

    Supported. Use Document.HasRevisions property to detect if document has any revisions. Read the following article for more information about working with revisions in Aspose.Words:

    http://www.aspose.com/Products/Aspose.Words/Api/ManageTrackingChanges.html

    to check and strip extended document properties.

    I assume that custom document properties (properties that can be added by user) are meant here.

    Supported. Use Document.CustomDocumentProperties collection.

    - to check strip document comments

    Supported. For general information see the article about tracking changes above.

    To enumerate use Document.GetChildNodes(NodeType.Comment, true). The resulting collection can be used to check if there are any comments in the document and to remove some or all of them.

    to check the document for macros ( date macros )

    Supported. Use Document.HasMacros, Document.RemoveMacros methods.

    to check to determine if document has embedded versions

    Supported. Use Document.VersionsCount property. Note that versions are not preserved by Aspose.Words after the document is saved. They are stripped automatically.

    to check to see if document is of an acceptable type

    Supported. Use Document.DetectFileFormat to detect if the file is in format supported by Aspose.Words.

    to check the file size ( size limit to be parameterized )

    That can be done using .NET Framework functionality. You do not need Aspose.Words for it.

    provide and "I'm alive" method ( for us in monitoring the service )

    Not clear. Please elaborate.

    to return page count

    Aspose.Words is not able to calculate actual number of pages in the document but can report the number of pages stored in document by MS Word when the document was last opened in MS Word. Document.BuiltInDocumentProperties.Pages property.

    to verify if file with a  .doc extension is a valid word document

    See above. Document.DetectFileFormat can be used for this.

    to generate a text file from word document

    Supported. SaveFormat.Text can be specified during Document.Save.

    to spell check

    Aspose.Spell component can be used for it.

    to generate a PDF document

    Supported. See http://www.aspose.com/Products/Aspose.Words/Api/ConvertingtoPDF.html

    to merge PDF document

    Not clear. If you mean appending one PDF document to another, then it is supported. Ask Apsose.Pdf team for proper how-to reference.

    check file extension to prove the extention is accurate

    That can be done without Aspose.Words.

    set the security level of a word document

    Not clear. If you mean setting document protection see:

    http://www.aspose.com/Products/Aspose.Words/Api/ProtectingaDocument.html

    Hope that answers your questions,


    Vladimir Averkin
    Developer/Technical Support
    Aspose Auckland Team
     
  •  07-13-2007, 12:08 PM 84091 in reply to 84002

    Re: Revision of that e mail

    I don't know why but I didn't get e mail about this reply.

    Anyway, thank you for your support.

    I think I can make it work now.

    Have a great weekend.

     

     
  •  08-16-2007, 12:27 PM 91028 in reply to 84002

    Re: Revision of that e mail

    You said

    Aspose.Words is not able to calculate actual number of pages in the document but can report the number of pages stored in document by MS Word when the document was last opened in MS Word. Document.BuiltInDocumentProperties.Pages property.

    So, as soon as the document hasn't been changed since last time it was opened, page count is correct?

    When can you make the page count available?

    Another qeustion. Can you possibly check the file format which is zipped? Let's say zipped documents.  Can you detect mime type extention too?

    Thank you.

     
  •  08-17-2007, 2:56 AM 91130 in reply to 91028

    Re: Revision of that e mail

    Hi

     

    Yes, page count got from Document.BuiltInDocumentProperties.Pages is correct. Pagination engine is still under development, it will be released in one of the future releases.

     

    You can unzip zipped documents using some zip utility and then check a type of documents. See msdn and the following link for more information.http://www.codeproject.com/csharp/VmEasyZipUnZip.asp

     

    Best regards.


    Aleksey Noskov
    Developer/Technical Support
    Aspose Auckland Team
     
  •  08-22-2007, 8:30 AM 91839 in reply to 91130

    Document.RemoveMacros

    Can you show me an example to delete the macros?

    Thank you in advance.

     
  •  08-22-2007, 9:07 AM 91845 in reply to 91839

    Re: Document.RemoveMacros

    Hi

     

    Thanks for your request. Document.RemoveMacros() method does not remove all macros from document. This method removes the macros created using VB editor only. I have logged this problem in our defect base as issue # 3633. We will try to fix it in one of the future releases. The notification will be posted here in this thread as soon as it will be done.

     

    Also see the following example.

     

    Document doc = new Document(@"131_83965_Ja\in.doc");

    doc.RemoveMacros();

    doc.Save(@"131_83965_Ja\out.doc");

     

    Best regards.


    Aleksey Noskov
    Developer/Technical Support
    Aspose Auckland Team
     
  •  08-23-2007, 1:28 PM 92065 in reply to 91845

    Yet another question

    to verify if file with a  .doc extension is a valid word document

     Document.DetectFileFormat can be used for this.

    check file extension to prove the extention is accurate

    That can be done without Aspose.Words.

     

    Problem here is that I want to find out that can Aspose provide with a method to detect original format of a file and change it back to it? For example, if someone not knowingly save a rtf to doc file, can you make it back to rtf file?

     
  •  08-24-2007, 2:17 AM 92128 in reply to 92065

    Re: Yet another question

    Hi

    Thanks for your request. You can use Document.DetectFileFormat(string FileName) method to detect format of document. For example if you create a doc file and then change an extension of this file - you can’t detect format using extension, but you can detect format using Document.DetectFileFormat(string FileName) method.

    Best regards.
    Aleksey Noskov
    Developer/Technical Support
    Aspose Auckland Team
     
  •  08-24-2007, 9:40 AM 92165 in reply to 92128

    Re: Yet another question

    does the trial version has the detectfileformat method? I couldn't find it.

    This is what I did.

     

    string filePath = @"d:\testdoc.doc"                 <---------which is not actual doc file

    Document doc = new document(filePath);

    String fileformat = doc.document(                    <--------I couldn't see that detecFileFormat method

     

    Thank you in advance.

      

     
  •  08-24-2007, 9:46 AM 92166 in reply to 92165

    Re: Yet another question

    Hi

     

    Yes, trial version has the detectfileformat method. Try to use the following code.

     

    LoadFormat format = Document.DetectFileFormat(@"136_92065_Ja\in.rtf");

     

    Also see the following link.
    http://www.aspose.com/Products/Aspose.Words/Api/DetectingFileFormat.html

     

    Best regards.


    Aleksey Noskov
    Developer/Technical Support
    Aspose Auckland Team
     
  •  08-24-2007, 1:51 PM 92213 in reply to 92166

    Re: Yet another question

    Ok. I am trying to find the original extension of a file and compare it with the file type table to see if it is an allowablefile. And I have an issue with the LoadFormat......

    FileInfo fi = new FileInfo(filePath);

    string fileName = fi.Name;

    LoadFormat format = Document.DetectFileFormat(fileName);

    bool isAllowableExtension = df.CheckFileExtension(format?????); // call method from business layer which calls database to see if match the file extension in database.

    How do I use LoadFormat or format?

    Thank you very much.

    Best regards,

    JYC

     

     
  •  08-25-2007, 4:07 AM 92269 in reply to 92213

    Re: Yet another question

    Hi

     

    Try to set full path to file as parameter of DetectFileFormat method. See the following example.

     

    // Set full path to file as parameter of DetectFileFormat method.

    LoadFormat format = Document.DetectFileFormat(@"136_92065_Ja\in.rtf");

    if (format.ToString().ToLower() == "doc")

    {

        // Do something

    }

     

    I hope that it will help you.


    Aleksey Noskov
    Developer/Technical Support
    Aspose Auckland Team
     
  •  08-27-2007, 12:28 PM 92411 in reply to 92269

    Re: Yet another question

    thank you for your help.

    Another question.

    Can you detect mime type file using aspose.words? or only using aspose.email? can I download trial version of it, if so?

     

     
  •  08-28-2007, 5:42 AM 92530 in reply to 92411

    Re: Yet another question

    Hi

     

    Thanks for your request. You should use Aspose.Network component. You can get latest version of this component at:
    http://www.aspose.com/Community/Files/54/aspose.network/entry89530.aspx

     

    Best regards.


    Aleksey Noskov
    Developer/Technical Support
    Aspose Auckland Team
     
Page 1 of 2 (27 items)   1 2 Next >
View as RSS news feed in XML