Want to set the Format.StartingPosition through VB script S’abonner

0
Avatar
Viral Suthar

The scripting is done for the "OnPrintJobStart" document event

When i have set the position statically, its worked,

Format.StartingPosition = 2

But when I have tried to set the starting position from following VB script expression, but its not working,

1st attempt with -> Format.StartingPosition = Format.NamedSubStrings("DataSourceName").Value

2nd attempt with -> Format.StartingPosition = CInt(Format.NamedSubStrings("DataSourceName").Value)

Need Help!!

Thanks,

Viral Suthar

1 commentaires

0
Avatar
Pete Thane
Actions pour les commentaires Permalien

It could be as the string you are calling has no value at the time of OnPrintJobStart and you may want to use one of the later options, like OnNewRecord if it comes from a database or OnPostPrompt etc.

Vous devez vous connecter pour laisser un commentaire.