PrintingPermission – PB Docs 115
PrintingPermission Table A-6 shows the required PrintingPermission settings for PowerScript system functions in Windows Forms targets. Table A-6: Printing Permission required for system functions in Windows Forms System function Permission required Print, PrintBitmap, PrintCancel, PrintClose, PrintDataWindow, PrintDefineFont, PrintGetPrinter, PrintScreen, PrintSend, PrintSetFont, PrintSetSpacing, PrintLine, PrintOpen.PrintOval, PrintPage, PrintRect, PrintRoundRect, PrintSetupPrinter, PrintText, PrintWidth, PrintX, PrintY DefaultPrinting or AllPrinting…
SetString – PB Docs 125
IPB_Session interface: SetString method Description Frees an existing string and assigns a new string value to it by performing a deep copy. Syntax
1 |
SetString (pbstring <span>string</span>, LPCTSTR <span>src</span>) |
Argument Description string A valid pbstring variable whose value is to be replaced src The string to be assigned to string Return Values PBXRESULT. Returns PBX_OK for success or PBX_E_INVALID_ARGUMENT if…
FindGroup – PB Docs 126
IPB_Session interface: FindGroup method Description Searches for a group with a given name and group type in the current library list. Syntax
1 |
FindGroup(LPCTSTR <span>name</span>, pbgroup_type <span>type</span>) |
Argument Description name The group name in lowercase type An enumerated type defined in pbgroup_type Return Values pbgroup or null on failure. Examples This example finds the group associated with user_exception and…
Working with nested reports – PB Docs 150
Working with nested reports When you use nested reports either in composite reports or in other base reports, several enhancements and options are available. An easy way to see what you can do is to select the nested report and look at the Properties view for it. Many of the options in the Properties view…
Using sheets – PB Docs 70
Using sheets In an MDI frame window, users can open windows (sheets) to perform activities. For example, in an electronic mail application, an MDI frame might have sheets that users open to create and send messages and read and reply to messages. All sheets can be open at the same time and the user can…
SQLClientPermission – PB Docs 115
SQLClientPermission Table A-15 shows the required SQLClientPermission setting for the database connection feature in .NET targets. Table A-15: SQLClientPermission required in .NET targets Feature Permission required Database connect (including pipeline functionality for Windows Forms clients) Unrestricted Example 1 The following permission setting allows database connections for a Windows Forms application:
1 |
<IPermission class="System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" /> |
Example 2 The following…
Using the extension in PowerBuilder – PB Docs 125
Using the extension in PowerBuilder To use the PowerBuilder native class in a PowerBuilder application, import the object descriptions in the PBX file into a library in your application. To import the extension into an application: Copy the PBX (or DLL) file to a directory on your application’s path. In PowerBuilder, create a new workspace….
GetArrayInfo – PB Docs 126
IPB_Session interface: GetArrayInfo method Description Obtains information about an array. Syntax
1 |
GetArrayInfo(pbarray <span>array</span>) |
Argument Description array A valid array handle Return Values PBArrayInfo*. Examples This IF–ELSE statement populates a PBArrayInfo structure if the array in the first value of a PBCallInfo structure is not null:
1 |
if ( !(ci->pArgs->GetAt(0)->IsNull()) )<br>{<br>   array = ci->pArgs->GetAt(0)->GetArray();<br>   pArrayInfo = session-><span>GetArrayInfo</span> (array);<br>   pArrayItemCount = session->GetArrayLength(array);<br>}<br>else<br>{<br>   // NULL array<br>pArrayItemCount = 0;<br>} |
Usage If the array is an unbounded array, the bounds…
Importing with a template – PB Docs 150
Importing with a template If the XML document or string from which you want to import data does not correspond to the DataWindow column definition, or if you want to import attribute values, you must use a template. If a schema is associated with the XML to be imported, you must create a template that…
About international deployment – PB Docs 70
About international deployment When you develop an application for deployment in multiple languages, you enter a two-phase process: The first is the internationalization phase, where you deal with design issues before you even begin the development process. Once the development phase of an internationalized application is completed, you enter the localization phase, where you deal…