REPEAT InfoRecNo := InfoRecNo + 1; Window.UPDATE(1,ROUND((RecNo + InfoRecNo) / TotalRecNo * 10000,1)); // IF InfoExcelBuf.NumberFormat <> '' THEN // XlWrkSht.Range(InfoExcelBuf.xlColID + InfoExcelBuf.xlRowID).NumberFormat := // InfoExcelBuf.NumberFormat; IF InfoExcelBuf.Formula = '' THEN XlWrkSht.Range(InfoExcelBuf.xlColID + InfoExcelBuf.xlRowID).Value := InfoExcelBuf."Cell Value as Text" ELSE XlWrkSht.Range(InfoExcelBuf.xlColID + InfoExcelBuf.xlRowID).Formula := InfoExcelBuf.GetFormula; { IF InfoExcelBuf.Comment <> '' THEN XlWrkSht.Range(InfoExcelBuf.xlColID + InfoExcelBuf.xlRowID).AddComment := InfoExcelBuf.Comment; IF InfoExcelBuf.Bold THEN XlWrkSht.Range(InfoExcelBuf.xlColID + InfoExcelBuf.xlRowID).Font.Bold := InfoExcelBuf.Bold; IF InfoExcelBuf.Italic THEN XlWrkSht.Range(InfoExcelBuf.xlColID + InfoExcelBuf.xlRowID).Font.Italic := InfoExcelBuf.Italic; XlWrkSht.Range(InfoExcelBuf.xlColID + InfoExcelBuf.xlRowID).Borders.LineStyle := XlLineStyleNone; IF InfoExcelBuf.Underline THEN XlWrkSht.Range(InfoExcelBuf.xlColID + InfoExcelBuf.xlRowID).Borders.Item(XlEdgeBottom).LineStyle := XlContinuous; } UNTIL InfoExcelBuf.NEXT = 0;
Comments
I'm guessing the report that calls the excel buffer sets them to true. So I would change report to set them to false.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
viewtopic.php?f=5&t=26657
http://www.BiloBeauty.com
http://www.autismspeaks.org