الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

محاذاة رقم الصفحة بالكود

بدأه atefkhalf2004 في 12 سبتمبر 2012 · 0 رد · 526 مشاهدة · في Microsoft Visual Basic.NET
مشاركة: واتساب X فيسبوك تيليجرام
#1

استحدم هذا الكود لادراج و محاذاة رقم الصفحة بالكود ولكن المحاذاة خاطئة

كيف اجعل المحاذاة في الوسط

Dim oWord As New Microsoft.Office.Interop.Word.Application
Dim oDoc As Microsoft.Office.Interop.Word.Document
oDoc = oWord.Documents.Open(Application.StartupPath & "\print\GGGGG.doc")
oDoc.Activate()

'oWord.ActiveDocument.Bookmarks("GG").Range.Text = (Me.TextBox1.Text)

With oWord.ActiveDocument.Sections(1)
.Range.ParagraphFormat.Alignment = Word.WdParagraphAlignment.wdAlignParagraphCenter
.Headers(Word.WdHeaderFooterIndex.wdHeaderFooterEv enPages).PageNumbers.Add()
End With


oWord.Selection.ParagraphFormat.Alignment = Word.WdParagraphAlignment.wdAlignParagraphCenter
'oWord.ActiveDocument.footerParagraph.Format.Horiz ontalAlignment = oWord.ActiveDocument.HorizontalAlignment.center


oWord.Visible = True

تم تعديل هذه المشاركة بواسطة houssam11350_11350 في 12 سبتمبر 2012 في 21:43 — السبب: تنسيق الكود

مواضيع مشابهة