Announcement

Collapse
No announcement yet.

Formular Feld mehr als 255 Zeichen

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Formular Feld mehr als 255 Zeichen

    Hallo zusammen,

    versuche mit Hilfe eines C# Programms in ein Formular Feld in Word mehr als 255 Zeichen einzufügen. Es wird eine Internetseite ausgelesen.
    Dies scheint schon ein wohlbekanntes Problem zu sein, siehe auch Forumseintrag hier:

    http://www.ms-office-forum.net/forum...?t-141623.html

    Per "Hand" geht es, automatisch nicht. Siehe auch Forumsdiskussion.

    Ich selber mache das so:

    Code:
      InternetExplorer ie = null;
      object o = null;
    
                ie = new InternetExplorerClass();
                IWebBrowserApp wb = (IWebBrowserApp)ie;
                while (wb.Busy) ;
                wb.Navigate("http://seite123.aspx", ref o, ref o, ref o, ref o);
                while (wb.Busy) ;
    
    HTMLDocument wd = (HTMLDocument)wb.Document;
    
    IHTMLElement elemBeschrText = wd.getElementById("ctl00_xyz");
    textBeschrText = elemBeschrText.innerHTML;
    ...
    
    foreach (FormField field in aDoc.FormFields)
                {
    // die drei Textfelder haben zusammen etwa 600 Zeichen.
    field.Result = textBeschrBez + " " + textBeschrText + " " + textBeschrZiel;
    }
    Jemand eine Idee, wie man das 255 Zeichen Problem überwindet? Generell bzw. für Formular Felder?
Working...
X