user575219
user575219

Reputation: 2442

c# Entry point was not found

I am using the syncfusion grid control. Converting the grid to word gives me a Entry point was not found exception.

Here's the code I have so far

 private void cmdSaveData_Click(object sender, EventArgs e)
    {
            ////CEC: this btn is labeled to Define a new group
            //cmdDefineGroup_Click(sender, e);
        GridWordConverter converter = new GridWordConverter(true, true);
        converter.DrawHeader += new GridWordConverterBase.DrawDocHeaderFooterEventHandler(converter_DrawHeader);
        converter.DrawFooter += new GridWordConverterBase.DrawDocHeaderFooterEventHandler(converter_DrawFooter);
        converter.GridToWord("Sample.doc", theGrid);
        System.Diagnostics.Process.Start("Sample.doc");
    }

    void converter_DrawFooter(object sender, DocHeaderFooterEventArgs e)
    {
        e.Footer.AddParagraph().AppendText("Copyright 2001-2008");
    }

    void converter_DrawHeader(object sender, DocHeaderFooterEventArgs e)
    {
        e.Header.AddParagraph().AppendText("Syncfusion Inc.");
    }

Here's the stack trace

   at Syncfusion.Windows.Forms.Grid.IGridVolatileData.get_HasColCount()
   at Syncfusion.Windows.Forms.Grid.GridModel.get_ColCount()
   at Syncfusion.GridHelperClasses.GridWordConverter.GridToWord(String filename, GridControlBase grid)
   at FP.frmData.cmdSaveData_Click(Object sender, EventArgs e) in C:\FP\frmData.cs:line 365

enter image description here

Upvotes: 0

Views: 2487

Answers (1)

Turbot
Turbot

Reputation: 5223

You just posting the stack trace, I don't see any exception in the post.

Obviously the "Entry Point was not found" might be referencing to your application startup, do you have your Main() defined in your project ?

UPDATE: Now I can see the stack trace, it seem like you are missing some dependent assemblies , and what are the word engines you use ?

Upvotes: 2

Related Questions