I have consumed a method "DrawText()" from the user32.dll to DrawText with wordBreak.Do we have any other way to replace this method with some Functionality.
DrawText(picImage.CreateGraphics().GetHdc().ToInt32(), New String(" "c, Strings.Len(Gd1.get_TextMatrix(ind, gdHeading)) * 2) & MSFlexGrid1.get_TextMatrix(wRow, mfgValue), -1, rct, DT_WORDBREAK)
Any alternative way to do this functionality.I have tried using spliting the Text based on the Spaces.The output differs with the old application.