powerbuilder

PowerBuilder 12.5 Classic PDF SaveAs creating files of 0 size on Win7 x64

断了今生、忘了曾经 提交于 2019-12-02 08:23:50
问题 Platform: Windows 7 x64 PB 12.5 Classic Ghostscript 9.07 (both x32 and x64 are installed) HP Laserjet PS printer installed as "Sybase DataWindow PS" Datawindow's Data Export tab has Format to configure: PDF and Method: Distill . Both the checkboxes "Distill custom postscript" and "Print using XSLFOP" are unchecked. I click File | Run/Preview and File | Save Rows As and select PDF as save as type and enter a pdf file name and click on Save. It says in a message box that Save Rows As failed . I

Cannot get PB 10.5 to save as PDF on Windows 7

♀尐吖头ヾ 提交于 2019-12-02 04:02:19
问题 I have an application built in 10.5 that was able to successfully create PDFs using SaveAs on Windows XP. When I moved to Windows 7 (32-bit), it failed by returning -1 and a zero length file. I have tried everything I can figure out. I have tried numerous version of Ghostscript (8.54, 8.71, 9.01), deleted the driver and re-added it. I copied the ghostscript EXEs and DLLs into my application directory as well. System variables include a GS_DLL=C:\Program Files\gs\gs9.01\bin\gsdll32.dll and a

powerbuilder连接oracle数据库

半腔热情 提交于 2019-12-02 02:39:31
一、打开已经安装好的pb9.0,主界面菜单栏有个两个圆柱形就行数据库连接,点击database。 二、选择oracle版本,由于数据库版本是9i,可以使用084 oracle8/8i.右键--选择new profile。当然你也可以设置好的profile导入进去。也可以把设置好profile导出来。 三、弹出database profile setup界面,我们点击connection(连接),命名profilename,server名字是oracle客户端的服务名,如何设置在我那也有教如何配置服务名。填入loginid和password(oracle登录用户名和密码),其他可以默认就可以。 四、设置好connection,点击system,powerbuider catalog table owner 为oracle登录名。(所有权限)。点击ok,就可以设置好oracle连接配置。 五、检查下是否设置成功,可以输入语句查询。当然设置前可以test连接。 // Profile oracle SQLCA.DBMS = "O84 Oracle8/8i (8.x.4+)" SQLCA.LogPass = <****> SQLCA.ServerName = "tygsnt" SQLCA.LogId = "ndns" SQLCA.AutoCommit = False SQLCA.DBParm

Cannot get PB 10.5 to save as PDF on Windows 7

烂漫一生 提交于 2019-12-02 00:17:41
I have an application built in 10.5 that was able to successfully create PDFs using SaveAs on Windows XP. When I moved to Windows 7 (32-bit), it failed by returning -1 and a zero length file. I have tried everything I can figure out. I have tried numerous version of Ghostscript (8.54, 8.71, 9.01), deleted the driver and re-added it. I copied the ghostscript EXEs and DLLs into my application directory as well. System variables include a GS_DLL=C:\Program Files\gs\gs9.01\bin\gsdll32.dll and a PATH that has C:\Program Files\gs\gs9.01\bin\; in it (tried it listed first and last in the path). When

Check if a file is open from another process

我的未来我决定 提交于 2019-12-01 21:22:59
How do I check if a file is already used by another process from Powerscript ? The best way that I found is to call the WinAPI CreateFile to open a given file in exclusive mode. First, declare the following Local External Function (PB10) FUNCTION Long CreateFile(ref string lpszName, long fdwAccess, long fdwShareMode, long lpsa, & long fdwCreate, long fdwAttrsAndFlags, long hTemplateFile) LIBRARY "Kernel32.dll" & ALIAS FOR "CreateFileA;Ansi" FUNCTION boolean CloseHandle (long file_hand) LIBRARY "KERNEL32.DLL" then from Powerscript : CONSTANT ulong GENERIC_ACCESS = 268435456 // &H10000000

PowerBuilder中pbm_keydown()和pbm_dwnkey()的区别:

一笑奈何 提交于 2019-12-01 08:01:47
原地址: https://vcoo.cc/blog/463/ PowerBuilder开发中我们经常会用到快捷键的事件编程,在PB中的键盘事件主要用三个:pbm_dwnkey、pbm_keydown、pbm_dwnprocessenter。有时候可能有些朋友添加了事件后发现没有效果,主要的原因可能是你没有搞清楚这三者的区别: pbm_keydown:窗口按任一键响应 pbm_dwnkey:数据窗口按任一键响应 pbm_dwnprocessenter:数据窗口按车键响应 这样就很清楚了,如果焦点在数据窗口中时添加键盘事件就用pbm_dwnkey,如果焦点在窗口除了数据窗口的其它控件则用pbm_keydown。 至于pbm_dwnprocessenter用非常有用的就是在数据窗口输入记录时按回车时判断是不是最后一行最后一列,如果是最后一列的话就insertrow(0)追加一行记录。 来源: https://www.cnblogs.com/Bokeyan/p/11671679.html

pb从数据窗口获得数据的方法总结

你说的曾经没有我的故事 提交于 2019-11-30 21:47:13
通过PowerBuilder的数据窗口对象属性,我们可以指定一定格式的表达式来直接从数据窗口中获得数据。这种直接的数据操作方法让我们能只需一条语句而不用调用许多方法,就可得到一定量甚至大量的数据。操作数据的表达式大致可分为三种,下面逐一介绍。 --------------------------------------------------------------------- 1) 在知道列或计算域名时得到数据得到某列中一行或全部的值, 表达式:(如果rownum忽略,则可得到缓冲区或数据源的值) dwcontrol.Object.columnname {.buffer } {.datasource } { [ rownum ] } 其中datasource 参数表示数据源,它有两个可选项,Current(缺省)和Original,由此参数我们可以指定数据是从当前数据窗口上还是从数据库中得到。对于计算域,它不能被改变也没有当前值,所以我们必须指定为此参数为Original。 示例: 因为缺省设置是在Primary缓冲区的当前值,下面语句是等价的,都是从第一行得到emp_name列的值 dw_1.Object.emp_name[1] dw_1.Object.emp_name.Primary.Current[1] 下面语句设置emp_name列的第一行值为“国防科技大学先进制造中心

Porting a PowerBuilder Application to .NET

允我心安 提交于 2019-11-30 10:48:38
问题 Does anyone have any advice for migrating a PowerBuilder 10 business application to .NET? My company is considering migrating a legacy PB application to .NET (C#) and I am just wondering if anyone has any experience - good or bad - that you would like to share. The application is rather large with 10 PBL libraries, some PFC as well as custom frameworks. There are a large number of DLL calls being made as well. Finally, it uses a Microsoft SQL Server database. We have discussed porting the

Porting a PowerBuilder Application to .NET

我的未来我决定 提交于 2019-11-29 22:30:25
Does anyone have any advice for migrating a PowerBuilder 10 business application to .NET? My company is considering migrating a legacy PB application to .NET (C#) and I am just wondering if anyone has any experience - good or bad - that you would like to share. The application is rather large with 10 PBL libraries, some PFC as well as custom frameworks. There are a large number of DLL calls being made as well. Finally, it uses a Microsoft SQL Server database. We have discussed porting the "core" application code to .NET and then porting more advanced functionality across as-needed. When I saw

Relation does not exist

江枫思渺然 提交于 2019-11-29 12:46:30
I have just connected Powerbuilder with PostgreSQL through ODBC, but something goes wrong when I'm trying to create a datawindow! I can't understand where is the problem. I will be so grateful to receive any answers. The error: Cannot create DataWindow SQLSTATE=42P01 ERROR:relation "core sample" does not exist; No query has been executed with that handle SELECT CORE_SAMPLE.N_CORE, CORE_SAMPLE.DEPTH, CORE_SAMPLE.WELL_ID_WELL, CORE_SAMPLE.ID_CORE FROM CORE_SAM' Erwin Brandstetter Obviously, there is a mixup with names. "core sample" is not the same as CORE_SAMPLE . Hard to say more, based on