Set The Starting Label Follow

0
Avatar
Legacy Poster

hi...
i am using bt 9.3 in vb.net 2.0 winform app.
in the app im loading loading an existing format in which i set to prompt for starting label.
in the bt program when i load the format and print it i get the prompt to set the starting label
but in the app i dont, i use this code:

_btApp = New BarTender.Application
_btFormater = New BarTender.Format
_btFormater = _btApp.Formats.Open(formatPath, True, "")
_btFormater.PrintOut(True, True)

is there any way of setting the starting label?

2 comments

0
Avatar
Shotaro Ito
Moderator
Comment actions Permalink

Hi Prog,

You need to set VisibleWindows property to .btStartingLabelDialogOnly before print.
If your format has Starting label dialog enabled in Page setup, it will show the dialog.
[code]
_btApp.VisibleWindows = BarTender.BtVisibleWindows.btStartingLabelDialogOnly
[/code]

Besides you need to use BarTender's starting label dialog to specify where to print from - as currently there's no ActiveX / .net SDK property to set starting label position by code.

Hope that helps.
0
Avatar
Ian Cummings
Moderator
Comment actions Permalink

Sorry but there are no properties or methods for setting the label number to start printing to on the page.

You could set the BarTender application object visibility property to be True, thus allowing the user to select the start point. I understand that this might not give you desired functionality.

I you application running as a service by any chance on Windows Vista or later? If so, it should be noted that Windows does not allow an interactive window on the desktop to be shown from a service; this is for security reasons and cannot be worked around.

Please sign in to leave a comment.