Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

C# - Word Application bearbeiten

Empfohlene Antworten

Veröffentlicht

Hey Leutz ... also ich habe folgendes Problem ...

Ich habe schon das Word-Dokument von C# aus geöfnnet und mit Daten aus einer Datenbank in eine Tabelle gefüllt. Nun möchte ich zur Überschrift noch ein kleines Bild (in bestimmter Größe und Position) hinzufügen.

Das Bild ist nun schon mit der Methode AddPictireBullet() zum Dokument hinzugefügt, doch steht irgendwo im Text mit Ausgangsgröße.

Weiß jemand wie ich die Größe und die Position des Bildes ändere?

lg gilli

Parameters

FileName

Required String. The file name of the image you want to use for the picture bullet.

Range

Optional Object. The range to which Microsoft Word adds the picture bullet. Word adds the picture bullet to each paragraph in the range. If this argument is omitted, Word adds the picture bullet to each paragraph in the current selection.

Geht nicht?

Wie "geht nicht?" ?

Das hab ich mir auch schon gedacht...bloß weiß ich nicht, wie ich die ganzen Sachen (Größe, Position) in das Range Packen soll???

lg Gilli

Ja das hab ich alles schon gelesen ...

Das ist mein Code der das Bild einfügt:

// Word.Range range = oWord.Selection.Range;

// oWord.Selection.Range.InlineShapes.New(range);

// range.InlineShapes.AddPictureBullet("...", ref oMissing);

So und nun muss ich das range ändern:

- eigentlich müsste ich bei "ref oMissing" ein range einbinden aber wie erstell ich dieses und wie ändere ich da die Daten? (Problem es wird ein Objekt gefordert und kein Range)

lg Gilli

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.