SetFormVisible2

Top  Previous  Next

The SetFormVisible2 method sets the visibility of a form in the forms combo-box on the printer preferences dialog.

HRESULT SetFormVisible2(

[in] BSTR p_wsFormName,

[in] BOOL p_bVisible,

[in] BSTR p_wsProfileName,

[in] BOOL p_bPublicProfile

);

 

Parameters:

p_wsFormName

[in]pointer to a BSTR containing the name of the custom form to edit

p_bVisible

[in] set to TRUE to show form or FALSE to hide form.

p_wsProfileName

[in] pointer to a BSTR containing the profile to modify. If this parameter is an empty string, the current active profile is used.

p_bPublicProfile

[in] Flag if the profile is a public or a private profile.

 

Return values:

S_OK on success or COM error code

NV_NOT_INITIALIZED - Initialize was not called

NV_UNKNOWN_FORM - a form with the specified name does not exist

NV_PUBLIC_PROFILE - you cannot change public profiles only on server