Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions Plugins/Aspose_Cells_Java_for_PHP/README.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<?php
/**
* Created by PhpStorm.
* User: fahadadeel
* Date: 21/07/15
* Time: 4:14 PM
*/

namespace Aspose\Cells\WorkingWithFiles\FileHandlingFeatures;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<?php
/**
* Created by PhpStorm.
* User: assadmahmood
* Date: 21/07/15
* Time: 5:00 PM
*/


namespace Aspose\Cells\WorkingWithFiles\FileHandlingFeatures;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<?php
/**
* Created by PhpStorm.
* User: fahadadeel
* Date: 05/08/15
* Time: 10:35 AM
*/


namespace Aspose\Cells\WorkingWithFiles\UtilityFeatures;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<?php
/**
* Created by PhpStorm.
* User: fahadadeel
* Date: 02/08/15
* Time: 6:53 PM
*/


namespace Aspose\Cells\WorkingWithFiles\UtilityFeatures;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<?php
/**
* Created by PhpStorm.
* User: fahadadeel
* Date: 04/08/15
* Time: 12:22 AM
*/


namespace Aspose\Cells\WorkingWithFiles\UtilityFeatures;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<?php
/**
* Created by PhpStorm.
* User: fahadadeel
* Date: 05/08/15
* Time: 10:25 AM
*/

namespace Aspose\Cells\WorkingWithFiles\UtilityFeatures;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<?php
/**
* Created by PhpStorm.
* User: fahadadeel
* Date: 04/08/15
* Time: 12:09 AM
*/

namespace Aspose\Cells\WorkingWithFiles\UtilityFeatures;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<?php
/**
* Created by PhpStorm.
* User: fahadadeel
* Date: 05/08/15
* Time: 12:20 PM
*/

namespace Aspose\Cells\WorkingWithWorksheets\DisplayFeatures;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<?php
/**
* Created by PhpStorm.
* User: fahadadeel
* Date: 05/08/15
* Time: 12:17 PM
*/

namespace Aspose\Cells\WorkingWithWorksheets\DisplayFeatures;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<?php
/**
* Created by PhpStorm.
* User: fahadadeel
* Date: 05/08/15
* Time: 12:14 PM
*/

namespace Aspose\Cells\WorkingWithWorksheets\DisplayFeatures;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<?php
/**
* Created by PhpStorm.
* User: fahadadeel
* Date: 05/08/15
* Time: 12:34 PM
*/

namespace Aspose\Cells\WorkingWithWorksheets\DisplayFeatures;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<?php
/**
* Created by PhpStorm.
* User: fahadadeel
* Date: 05/08/15
* Time: 12:24 PM
*/

namespace Aspose\Cells\WorkingWithWorksheets\DisplayFeatures;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ public static function run($dataDir=null)

public static function add_page_breaks($dataDir=null, $workbook)
{
$worksheets = $workbook->getWorksheets();
$worksheet = $worksheets->get(0);
$worksheets = $workbook->getWorksheets();
$worksheet = $worksheets->get(0);

$h_page_breaks = $worksheet->getHorizontalPageBreaks();
$h_page_breaks->add("Y30");
$h_page_breaks = $worksheet->getHorizontalPageBreaks();
$h_page_breaks->add("Y30");

$v_page_breaks = $worksheet->getVerticalPageBreaks();
$v_page_breaks->add("Y30");
$v_page_breaks = $worksheet->getVerticalPageBreaks();
$v_page_breaks->add("Y30");

# Saving the modified Excel file in default (that is Excel 2003) format
$workbook->save($dataDir . "Add Page Breaks.xls");
# Saving the modified Excel file in default (that is Excel 2003) format
$workbook->save($dataDir . "Add Page Breaks.xls");

print "Add page breaks, please check the output file." . PHP_EOL;

Expand All @@ -43,11 +43,11 @@ public static function add_page_breaks($dataDir=null, $workbook)
public static function clear_all_page_breaks($dataDir=null, $workbook)
{

$workbook->getWorksheets()->get(0)->getHorizontalPageBreaks()->clear();
$workbook->getWorksheets()->get(0)->getVerticalPageBreaks()->clear();
$workbook->getWorksheets()->get(0)->getHorizontalPageBreaks()->clear();
$workbook->getWorksheets()->get(0)->getVerticalPageBreaks()->clear();

# Saving the modified Excel file in default (that is Excel 2003) format
$workbook->save($dataDir . "Clear All Page Breaks.xls");
# Saving the modified Excel file in default (that is Excel 2003) format
$workbook->save($dataDir . "Clear All Page Breaks.xls");

print "Clear all page breaks, please check the output file." . PHP_EOL;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,42 +1,34 @@
<?php
/**
* Created by PhpStorm.
* User: assadmahmood
* Date: 30/06/15
* Time: 10:45 AM
*/

namespace Aspose\Cells\QuickStart;

use com\aspose\cells\Workbook as Workbook;
use com\aspose\cells\FileFormatType as FileFormatType;

class HelloWorld {

public static function run()
public static function run($dataDir=null)
{
$ptr= new \COM('Aspose.Cells.Interop.InteropHelper');

// Instantiating a Workbook object that represents a Microsoft Excel file.
$workbook = new Workbook();

// Note when you create a new workbook, a default worksheet,
// "Sheet1", is by default added to the workbook.
// Accessing the first worksheet in the book ("Sheet1").
$sheet = $workbook->getWorksheets()->get(0);

$doc = new \COM("Aspose.Words.Document");
# Access cell "A1" in the sheet.
$cell = $sheet->getCells()->get("A1");

$builder = new \COM("Aspose.Words.DocumentBuilder");
# Input the "Hello World!" text into the "A1" cell
$cell->setValue("Hello World!");

$builder->Document = $doc;
# Saving the modified Excel file in default (that is Excel 2003) format
$file_format_type = new FileFormatType();
$workbook->save($dataDir . "HelloWorld.xls", $file_format_type->EXCEL_97_TO_2003);

$builder->Write("Hello world!");

$doc->Save("./data/HelloWorld Out.docx");


/*$ptr= new \COM("Aspose.Words.ComHelper")or die('Unable to load helper');

$doc = $ptr->New("Document",array());

$builder = $ptr->New("Aspose.Words.DocumentBuilder",array($doc));

$builder->Writeln("Hello World!");

$doc->Save("./data/HelloWorld Out.docx");*/
print "Document has been saved, please check the output file.";


}
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading