Export to office integration pack problem filtering info.... RRS feed

  • Question

  • Hi, 

    I've got an error when exporting a report from LS to Word.

    I have a table named (Products), with a field named TITLE

    i've created a word, with Table.

    I would like to export to these table, only the MAIN TITLE for only selected lines.

    I tested 3 differents metods, all with same result.

    first one:

    Dim resumen = From a In Me.RelaciónReferencias Where a.IncluirTituloEnResumen = True
                   Dim TablaResumen As New List(Of OfficeIntegration.ColumnMapping)
                   TablaResumen.Add(New OfficeIntegration.ColumnMapping("Titulo""Titulo"))
                   OfficeIntegration.Word.Export(doc, "Resumen", 2, False, resumen, TablaResumen)

    ERROR: 'StartRow' is greater then the number of rows in the table

    Second One:

    Dim TablaResumen As New List(Of OfficeIntegration.ColumnMapping)

                    TablaResumen.Add(New OfficeIntegration.ColumnMapping("Titulo""Titulo"))
                    OfficeIntegration.Word.Export(doc, "Resumen", 2, FalseMe.RelaciónReferencias.Where(Function(eb) eb.
    IncluirTituloEnResumen = True), TablaResumen)

    Same Error

    Third test:

    Create a new grid filtered on a details screens for these field, and same error...

    Any idea?

    Monday, August 18, 2014 6:52 AM


  • Solved, 

    problem still in number of start row (destination table), there are only one cell.


    • Marked as answer by Ivan Martinez Monday, August 18, 2014 10:15 PM
    Monday, August 18, 2014 10:15 PM