Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
158 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ obj/ | |
classes/ | ||
generated/ | ||
bin/ | ||
*_out_* | ||
* Out* | ||
* out* | ||
*.ldb | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 8 additions & 7 deletions
15
...pose/words/examples/linq/BubbleChart.java → ...spose/words/examples/linq/CommonList.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,34 @@ | ||
package com.aspose.words.examples.linq; | ||
import com.aspose.words.*; | ||
import com.aspose.words.examples.Utils; | ||
import java.util.Date; | ||
public class BubbleChart { | ||
import java.util.*; | ||
public class CommonList { | ||
/** | ||
* The main entry point for the application. | ||
*/ | ||
public static void main(String[] args) throws Exception | ||
{ | ||
// The path to the documents directory. | ||
String dataDir = Utils.getDataDir(BubbleChart.class); | ||
String dataDir = Utils.getDataDir(CommonList.class); | ||
|
||
String fileName = "BubbleChart.docx"; | ||
String fileName = "CommonList.doc"; | ||
// Load the template document. | ||
Document doc = new Document(dataDir + fileName); | ||
|
||
// Create a Reporting Engine. | ||
ReportingEngine engine = new ReportingEngine(); | ||
|
||
// Execute the build report. | ||
engine.buildReport(doc, Common.GetContracts(), "contracts"); | ||
// engine.getKnownTypes().add(DateUtil.class); | ||
engine.buildReport(doc, Common.Managers()); | ||
|
||
dataDir = dataDir + Utils.GetOutputFilePath(fileName); | ||
|
||
// Save the finished document to disk. | ||
doc.save(dataDir); | ||
|
||
System.out.println("\nBubble chart template document is populated with the data about contracts.\nFile saved at " + dataDir); | ||
|
||
} | ||
System.out.println("\nCommon list template document is populated with the data about managers.\nFile saved at " + dataDir); | ||
|
||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
Examples/src/main/java/com/aspose/words/examples/linq/HelloWorld.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package com.aspose.words.examples.linq; | ||
import com.aspose.words.*; | ||
import com.aspose.words.examples.Utils; | ||
import java.util.*; | ||
public class HelloWorld { | ||
/** | ||
* The main entry point for the application. | ||
*/ | ||
public static void main(String[] args) throws Exception | ||
{ | ||
|
||
// The path to the documents directory. | ||
String dataDir = Utils.getDataDir(HelloWorld.class); | ||
|
||
String fileName = "HelloWorld.doc"; | ||
// Load the template document. | ||
Document doc = new Document(dataDir + fileName); | ||
|
||
// Create an instance of sender class to set it's properties. | ||
Sender sender = new Sender(); | ||
sender.setName("LINQ Reporting Engine"); | ||
sender.setMessage("Hello World"); | ||
|
||
// Create a Reporting Engine. | ||
ReportingEngine engine = new ReportingEngine(); | ||
|
||
// Execute the build report. | ||
engine.buildReport(doc, sender, "sender"); | ||
|
||
dataDir = dataDir + Utils.GetOutputFilePath(fileName); | ||
|
||
// Save the finished document to disk. | ||
doc.save(dataDir); | ||
|
||
System.out.println("\nTemplate document is populated with the data about the sender.\nFile saved at " + dataDir); | ||
|
||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
Examples/src/main/java/com/aspose/words/examples/linq/MulticoloredNumberedList.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.aspose.words.examples.linq; | ||
import com.aspose.words.*; | ||
import com.aspose.words.examples.Utils; | ||
import java.util.*; | ||
public class MulticoloredNumberedList { | ||
/** | ||
* The main entry point for the application. | ||
*/ | ||
public static void main(String[] args) throws Exception { | ||
// The path to the documents directory. | ||
String dataDir = Utils.getDataDir(MulticoloredNumberedList.class); | ||
String fileName = "MulticoloredNumberedList.doc"; | ||
// Load the template document. | ||
Document doc = new Document(dataDir + fileName); | ||
|
||
// Create a Reporting Engine. | ||
ReportingEngine engine = new ReportingEngine(); | ||
|
||
// Execute the build report. | ||
engine.buildReport(doc, Common.GetClients()); | ||
|
||
dataDir = dataDir + Utils.GetOutputFilePath(fileName); | ||
|
||
// Save the finished document to disk. | ||
doc.save(dataDir); | ||
|
||
System.out.println("\nMulticolored numbered list template document is populated with the data about clients.\nFile saved at " + dataDir); | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
Examples/src/main/java/com/aspose/words/examples/linq/NumberedList.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.aspose.words.examples.linq; | ||
import com.aspose.words.*; | ||
import com.aspose.words.examples.Utils; | ||
import java.util.*; | ||
public class NumberedList { | ||
/** | ||
* The main entry point for the application. | ||
*/ | ||
public static void main(String[] args) throws Exception { | ||
// The path to the documents directory. | ||
String dataDir = Utils.getDataDir(NumberedList.class); | ||
String fileName = "NumberedList.doc"; | ||
// Load the template document. | ||
Document doc = new Document(dataDir + fileName); | ||
|
||
// Create a Reporting Engine. | ||
ReportingEngine engine = new ReportingEngine(); | ||
|
||
// Execute the build report. | ||
engine.buildReport(doc, Common.GetClients()); | ||
|
||
dataDir = dataDir + Utils.GetOutputFilePath(fileName); | ||
|
||
// Save the finished document to disk. | ||
doc.save(dataDir); | ||
|
||
System.out.println("\nNumbered list template document is populated with the data about clients.\nFile saved at " + dataDir); | ||
} | ||
} |
Binary file removed
BIN
-18.5 KB
Examples/src/main/resources/com/aspose/words/examples/linq/BubbleChart/BubbleChart.docx
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Examples/src/main/resources/com/aspose/words/examples/linq/BulletedList/BulletedList.doc
Binary file not shown.
Binary file added
BIN
+34 KB
Examples/src/main/resources/com/aspose/words/examples/linq/CommonList/CommonList.doc
Binary file not shown.
Binary file added
BIN
+34 KB
Examples/src/main/resources/com/aspose/words/examples/linq/HelloWorld/HelloWorld.doc
Binary file not shown.
Binary file removed
BIN
-17 KB
...rc/main/resources/com/aspose/words/examples/linq/InParagraphList/InParagraphList_out_.doc
Binary file not shown.
Binary file added
BIN
+36.5 KB
...rces/com/aspose/words/examples/linq/MulticoloredNumberedList/MulticoloredNumberedList.doc
Binary file not shown.
Binary file added
BIN
+34.5 KB
Examples/src/main/resources/com/aspose/words/examples/linq/NumberedList/NumberedList.doc
Binary file not shown.
Binary file removed
BIN
-24.5 KB
Examples/src/main/resources/com/aspose/words/examples/linq/SingleRow/SingleRow_out_.doc
Binary file not shown.