Hi
Can anyone show me ho I can apply a certain font and fontsize to text that is in a textframe using visual basic.net. Also, is it possible to have different fonts and sizes inside the same textframe, I would in that case be very happy if an example is shown to me.
This is what I got so far..
Dim myIndesign As InDesign.Application
Dim myDocument As InDesign.Document
Dim myPage As InDesign.Page
Dim myTextFrame As InDesign.TextFrame
Dim myArray As Array
Dim myIntArray() As Integer = {10, 10, 20, 30}
myIndesign = CreateObject("Indesign.Application")
myDocument = myIndesign.Documents.Add
myPage = myDocument.Pages.Item(1)
'Create a text frame
myTextFrame = myDocument.TextFrames.Add
myTextFrame.GeometricBounds = myIntArray
myTextFrame.TextContents = ("Hello World")
Regards
Can anyone show me ho I can apply a certain font and fontsize to text that is in a textframe using visual basic.net. Also, is it possible to have different fonts and sizes inside the same textframe, I would in that case be very happy if an example is shown to me.
This is what I got so far..
Dim myIndesign As InDesign.Application
Dim myDocument As InDesign.Document
Dim myPage As InDesign.Page
Dim myTextFrame As InDesign.TextFrame
Dim myArray As Array
Dim myIntArray() As Integer = {10, 10, 20, 30}
myIndesign = CreateObject("Indesign.Application")
myDocument = myIndesign.Documents.Add
myPage = myDocument.Pages.Item(1)
'Create a text frame
myTextFrame = myDocument.TextFrames.Add
myTextFrame.GeometricBounds = myIntArray
myTextFrame.TextContents = ("Hello World")
Regards