Jump to content

Recommended Posts

Posted

Bhayya i need a help in creating a word file using Aspose.words lib .. adhi ela chestharu ani telidhu

 

emi ayyina example ledha ela cheyalo ledha anyone who can support me on that would be helpful.

Posted

first i need to show demo bhayya then maa vallu licence use chestharu anta.. how to start ani chusthuna

Aspose is not free , its a commercial library , do you have licence?? if you have or your trying a demo , there are lot of examples comes with downlad or refer github link ....

 

https://github.com/asposewords/Aspose_Words_Java   

 

check under src folder

 

Posted

download the jar ....

 

 

create a simple java project 

 

add Aspose to classpath 

 

create a java class 

 

add below code main 

 

 

 String dataDir = "c:/data/";

        // Create a blank document.
        Document doc = new Document();
        // DocumentBuilder provides members to easily add content to a document.
        DocumentBuilder builder = new DocumentBuilder(doc);
        // Write a new paragraph in the document with the text "Hello World!"
        builder.writeln("Hello World!");
        // Save the document in DOCX format. The format to save as is inferred from the extension of the file name.
        // Aspose.Words supports saving any document in many more formats.
        doc.save(dataDir + "HelloWorld Out.docx");
 
 
Thats it .... u r started ... keep going :) 

first i need to some demo bhayya then maa vallu licence use chestharu anta.. how to start ani chusthuna

 

Posted

Thanks Bhayya

 

download the jar ....

 

 

create a simple java project 

 

add Aspose to classpath 

 

create a java class 

 

add below code main 

 

 

 String dataDir = "c:/data/";

        // Create a blank document.
        Document doc = new Document();
        // DocumentBuilder provides members to easily add content to a document.
        DocumentBuilder builder = new DocumentBuilder(doc);
        // Write a new paragraph in the document with the text "Hello World!"
        builder.writeln("Hello World!");
        // Save the document in DOCX format. The format to save as is inferred from the extension of the file name.
        // Aspose.Words supports saving any document in many more formats.
        doc.save(dataDir + "HelloWorld Out.docx");
 
 
Thats it .... u r started ... keep going :)

 

 

×
×
  • Create New...