Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Casting a string to a PaperSource ...
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00922355
Message ID:
00922445
Vues:
20
Hi,

With your code, I get a squiggly line under:
PaperSource.GetType
... with the tooltip "Reference to a non shared member requires an object reference"

Is it just me, or should setting a paper tray programatically not be so friggin' complicated?


>You can use the Parse method of the Enum base class.
>
>
>'set the paper source
>myPrintDocument.DefaultPageSettings.PaperSource = _
>  CType([Enum].Parse(PaperSource.GetType, _
>  Me.cboPaperTrayLetter.Text.Trim), PaperSource)
>
Al Williams

Anola MB, CANADA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform