失眠网,内容丰富有趣,生活中的好帮手!
失眠网 > dw表单存入mysql_将表单添加到表单数据库

dw表单存入mysql_将表单添加到表单数据库

时间:2021-02-22 14:49:11

相关推荐

dw表单存入mysql_将表单添加到表单数据库

将表单添加到表单数据库Adding Forms to the Forms Database

04/20/

本文内容

如果打印机支持其他纸张规格,可以通过在打印机驱动程序的 GPD 文件中对其进行描述,将它们添加到 Unidrv 打印机驱动程序。If your printer supports additional forms, you can add them to your Unidrv printer driver by describing them in the GPD file for the printer driver. 如果使用具有 rcNameId 字段的资源 ID * 和用于窗体显示名称字符串的资源 DLL,则驱动程序将自动使用 Windows Vista Unidrv 打印机驱动程序提供的新本地化增强功能。If you use a resource ID with the *rcNameId field and a resource DLL for the form display name string, your driver will automatically use the new localization enhancements features that the Windows Vista Unidrv printer driver provides. Unidrv 打印机驱动程序插件还会自动受益于对后台处理程序所做的更改,无需任何其他修改。Unidrv printer driver plug-ins also benefit from these changes to the spooler automatically and do not require any additional modifications. For more information about these enhancements, see Changes to Printer Forms in Windows Vista.

如果未对 GPD 文件中的可本地化字符串使用资源 DLL,则应删除可本地化的字符串,将它们存储在资源 DLL 中,并将字符串替换为 GPD 文件中的相应资源 ID。If you are not using a resource DLL for the localizable strings in the GPD file, you should remove the localizable strings, store them in a resource DLL, and replace the strings with the corresponding resource ID in the GPD file.

下面的代码示例摘自 GPD 文件,该文件使用显示名称的资源 ID。The following code example is an excerpt from a GPD file that uses a resource ID for the display name.

*Feature: PaperSize

{

*Option: Option2

{

*rcNameID: 259

(form definition)

}

(other form definitions).

}

在随 Windows Vista 一起提供的 Unidrv 打印机驱动程序中,表单 _ INFO _ 2 结构由从 GPD 文件中读取的数据进行填充,如下表所示。Inside the Unidrv printer driver that is provided with Windows Vista, the FORM_INFO_2 structure is populated by data that is read from the GPD file, as the following table shows. 如果打印机的 GPD 文件中已包含填充此结构所需的信息,则无需更改任何内容即可使用 Windows Vista Unidrv 打印机驱动程序提供的新功能。If the GPD file for your printer already contains the information that is required to fill in this structure, you do not need to change anything to use the new features that the Windows Vista Unidrv printer driver provides.

typedef struct _FORM_INFO_2 {

DWORD Flags;

LPTSTR pName;

SIZEL Size;

RECTL ImageableArea;

LPCSTR pKeyword;

DWORD StringType;

LPCTSTR pMuiDll;

DWORD dwResourceId;

LPCTSTR pDisplayName;

LANGID wLangId;

} FORM_INFO_2, *PFORM_INFO_2;

FORM_INFO_2 字段FORM_INFO_2 field

使用的 GPD 值GPD value used

字段说明Field description

FlagsFlags

FORM_PRINTERFORM_PRINTER

此值由 Unidrv 打印机驱动程序分配,因为它将添加窗体。This value is assigned by the Unidrv printer driver because it is adding the form. GPD 文件中的值不用于此字段。A value from the GPD file is not used for this field.

结构的属性。The properties of structure.

pNamepName

从资源 DLL 或 GPD 文件中的 \* rcName 字段获取的窗体的本地化名称。The localized name of the form as obtained from the resource DLL or from the \*rcName field in the GPD file.

指向以 null 结尾的字符串的指针,该字符串指定窗体的名称。A pointer to a null-terminated string that specifies the name of the form. 此字符串用于标识 forms 数据库中的表单,并且必须是唯一的。This string is used to identify the form in the forms database and must be unique.

大小Size

从 GPD 文件中的 \* PageDimensions 选项读取的大小信息。Size information that is read from the \*PageDimensions option in the GPD file.

窗体的宽度和高度(以毫米为单位)。The width and height, in thousandths of millimeters, of the form.

ImageableAreaImageableArea

从 GPD 文件中的 \* PrintableArea 选项读取的大小信息。Size information that is read from the \*PrintableArea option in the GPD file.

打印机可以打印的页面区域的宽度和高度(以毫米为单位)。The width and height, in thousandths of millimeters, of the area of the page on which the printer can print.

pKeywordpKeyword

GPD 文件中的 \* 选项项的值。The value of the \*Option entry in the GPD file.

指向窗体的不可本地化字符串标识符的指针。A pointer to a non-localizable string identifier of the form. 传递给 AddForm 或 SetForm 时,此指针向调用方提供一种在所有区域设置中标识窗体的方法。When passed to AddForm or SetForm, this pointer gives the caller a way to identify the form in all locales.

StringTypeStringType

STRING_MUIDLLSTRING_MUIDLL

如果 GPD 使用 \* rcNameId 选项,并且可以从资源 DLL 中获取窗体名称,则会分配 STRING_MUIDLL 值。If the GPD uses the \*rcNameId option and the form name is available from the resource DLL, the STRING_MUIDLL value is assigned. 如果改为在 GPD 文件中使用 \* rcName 选项,则 STRING_NONE 此字段的值。If the \*rcName option is used in the GPD file instead, the value for this field is STRING_NONE. GPD 文件中的值不用于此字段。A value from the GPD file is not used for this field.

指定在运行时如何获取窗体的本地化显示名称。Specifies how a localized display name for the form is obtained at runtime.

pMuiDllpMuiDll

如果使用 \* rcNameId 选项,则为 GPD 文件中的 \* ResourceDLL 项的值。The value of the \*ResourceDLL entry in GPD file if the \*rcNameId option is used. 如果改为在 GPD 文件中使用 \* rcName 选项,则此字段的值为 NULL。If the \*rcName option is used in the GPD file instead, the value for this field is NULL.

MUI 本地化资源 DLL,其中包含 StringType 包含 STRING_MUIDLL 时的本地化显示名称。The MUI localized resource DLL that contains the localized display name when StringType contains STRING_MUIDLL.

dwResourceIddwResourceId

GPD 文件中的 \* rcNameID 项的值。The value of the \*rcNameID entry in the GPD file. 如果改为在 GPD 文件中使用 \* rcName 选项,则此字段的值为0。If the \*rcName option is used in the GPD file instead, the value for this field is 0.

StringType包含 STRING_MUIDLL 时窗体的显示名称的资源 ID ( pMuiDll)。The resource ID, in pMuiDll, of the form's display name when StringType contains STRING_MUIDLL.

pDisplayNamepDisplayName

NULLNULL

不使用此字段。This field is not used.

窗体的显示名称,采用 wLangId 指定的语言, StringType 包含 STRING_LANGPAIR。The form's display name in the language that wLangId specifies when StringType contains STRING_LANGPAIR.

wLangIdwLangId

00

不使用此字段。This field is not used.

当StringType包含 STRING_LANGPAIR 时的pDisplayName的语言。The language of pDisplayName when StringType contains STRING_LANGPAIR.

如果觉得《dw表单存入mysql_将表单添加到表单数据库》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。