We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

3.6.0.0 vs 3.6.1.0

Hi

Where I can download the trial version of Aspose.Words 3.6.1.0? In the download area there is only the 3.6.1.0 which has few problem which I read have been solved with the new release.

I am evaluating this product for my company but I can print with this code:

Aspose.Words.Viewer.DocumentRenderer renderer = new Aspose.Words.Viewer.DocumentRenderer(mstrFullOutName);

renderer.Print();

I have an exception on the “Print” line:

ArgumentOutOfRangeException

Number was less than the array’s lower bound in the first dimension.
Parameter name: srcIndex

Thanks

Rosario

Hi Rosario,

You can download 3.6.1 from this page:
https://downloads.aspose.com/words/net
The mentioned error has been fixed in this release. Please also read this post.

Thanks

Hi

Dmitry I appreciate Aspose.Words.Viewer is not supported and should be take the way it is but it is just for your information: I am running a mail merge, the result is only two pages saved on my machine, now with the 3.6.1.0 I can print the doc with this code:

Aspose.Words.Viewer.DocumentRenderer renderer = new Aspose.Words.Viewer.DocumentRenderer(mstrFullOutName);

renderer.Print();

but the strange thing is that only the first page is printed, I mean the second one is printed but the page is completely white. If I open with worf my saved doc then I have both the pages printed. This is the code (very simple you can just copy and paste, declare a button and a checkbutton and that’s it):

public partial class Form1 : Form
{
    public Form1()
    {
        InitializeComponent();
    }
    private void button1_Click(object sender, EventArgs e)
    {
        string mstrFullMergeName = "C:\\App2\\MergeMail_with_Aspose\\rosariotest.doc";
        string mstrFullOutName = "C:\\App2\\MergeMail_with_Aspose\\Output.doc";

        //string mstrMyOutputDataSetXML = "C:\\App2\\MergeMail_with_Aspose\\MyOutputDataset.xml";
        DataSet ds = new DataSet("MyDataSet");
        ds.Namespace = "NetFrameWork";
        DataTable table = new DataTable("MyDataTable");
        DataColumn itemColumn1 = new DataColumn("refno");
        table.Columns.Add(itemColumn1);
        DataColumn itemColumn2 = new DataColumn("pname");
        table.Columns.Add(itemColumn2);
        DataColumn itemColumn3 = new DataColumn("paddress1");
        table.Columns.Add(itemColumn3);
        DataColumn itemColumn4 = new DataColumn("paddress2");
        table.Columns.Add(itemColumn4);
        DataColumn itemColumn5 = new DataColumn("paddress3");
        table.Columns.Add(itemColumn5);
        DataColumn itemColumn6 = new DataColumn("paddress4");
        table.Columns.Add(itemColumn6);
        DataColumn itemColumn7 = new DataColumn("paddress5");
        table.Columns.Add(itemColumn7);
        DataColumn itemColumn8 = new DataColumn("detail");
        table.Columns.Add(itemColumn8);
        DataColumn itemColumn9 = new DataColumn("mailto");
        table.Columns.Add(itemColumn9);
        ds.Tables.Add(table);
        DataRow newRow;
        newRow = table.NewRow();
        newRow["refno"] = "003098";
        newRow["pname"] = "Ears Today";
        newRow["paddress1"] = "3 Stoke Grove";
        newRow["paddress2"] = "Westbury";
        newRow["paddress3"] = "Bristol";
        newRow["paddress4"] = "BS9 3SD";
        newRow["paddress5"] = "Test";
        newRow["detail"] = "Record";
        newRow["mailto"] = "rcarbone@civica.co.uk";
        table.Rows.Add(newRow);
        newRow = table.NewRow();
        newRow["refno"] = "003099";
        newRow["pname"] = "Ears Tomorrow";
        newRow["paddress1"] = "3 Stoke Grave";
        newRow["paddress2"] = "Eastbury";
        newRow["paddress3"] = "Swindon";
        newRow["paddress4"] = "SN1 3SD";
        newRow["paddress5"] = "Test";
        newRow["detail"] = "Record";
        newRow["mailto"] = "pcash@civica.co.uk";
        table.Rows.Add(newRow);
        ds.AcceptChanges();
        // Next is just a test to see how an xml document reflect the dataset
        //ds.WriteXml(mstrMyOutputDataSetXML);
        Aspose.Words.Document docTemplate = new Aspose.Words.Document(mstrFullMergeName);
        //Fill the fields in the document with user data.
        docTemplate.MailMerge.Execute(ds.Tables["MyDataTable"]);
        //Save the document
        docTemplate.Save(mstrFullOutName);
        if (ckbPrint.Checked)
        {
            Aspose.Words.Viewer.DocumentRenderer renderer = new Aspose.Words.Viewer.DocumentRenderer(mstrFullOutName);
            renderer.Print();
        }
        ds.Dispose();
    }
}

Thanks for the report Rosario, we are looking into this. Most likely this will be fixed in the next release.

We are happy to tell you that the new Rendering Engine has replaced the “old Viewer Beta”. The Rendering Engine can print, save as images or draw onto .NET Graphics object any document page.

Please see Aspose.Words documentation to learn more about new features.

Saving to image

In additional, new Rendering engine allows you to convert Word document to PDF directly (without using Aspose.Pdf).

Saving to Pdf

The latest version of Aspose.Words is available for download from downloads section or from NuGet