Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all 2935 articles
Browse latest View live

Saveas PDF not working in Web application using assembly created by PB.NET 12.6

$
0
0

Hi,

 

I’m using PB12.6. I have a web application that need to print the report created by PB. I create a simple assembly in PB.Net to test it. This assembly has a simple function using datastore to save the dataobject as PDF. Some code as below:

 

datastore n_ds

n_ds = createdatastore

n_ds.dataobject = 'd_test'

n_ds.SetTransObject(sqlca)

n_ds.retrieve()

n_ds.Modify("DataWindow.Export.PDF.Method = Distill!")

n_ds.Modify("DataWindow.Export.PDF.Distill.CustomPostScript=1")

n_ds.Modify("DataWindow.Printer='Generic PostScript Printer'")

return n_ds.saveas('C:\test.pdf', PDF!, false)

 

I also installed GhostScript 9.05 and a PDF printer called ‘Generic PostScript Printer’. This function is OK in PB with a PDF file is created. But in the web application, this function always return -1 and no file is created. I try to reference to some library of PB but I have the same result.

Can anyone help me?

 

Richard


How to find out the orientation of the datawindow from PSR file?

$
0
0

Hello,

 

I have a program that saves the retrieved datawindow as PSR file. PSR view shows the proper orientation of the datawindow. However, when we open the PSR file in notepad, print.oritentation is always 1 not matter what the orientation is.

 

Can you please advise if there's anyway we can find out the actual orientation information from the PSR file?
Thank you.

 

-Ping

PB15beta : PBNI and 64 bit support

$
0
0

Hi

I have heard that PBNI won't support 64 bit deployment.

Is it true?

Is there an official statement from SAP of all the unsupported features when building in 64-bit, compared to 32-bits?

What about all pbx's available at the moment in 32-bit ( pbdom, webservices, ...) ?

Thanks

 

Philip

PS : I think that there should be no difference in functionnalities or behaviour between the 32 or 64 bitness. Otherwise, 64-bit will be useless.

PB 12.5.2 Build 5801 - Craches on pfc sort column descending

$
0
0

Hi Guys

 

I've got an odd one. My application crashes if you click on a column to sort (using PFC). When you click on it the second time to sort descending it goes through all the code in the clicked event and then crashes.

 

If I single step through the code in debug then it does not crash. If I put a break point at the last command executed in the clicked event and then single step it does crash.

 

No timer events or loose, getfocus events. The activate event is not firing( I would not expect it to).

 

Details from the Event Log:

Faulting application name: PB125.EXE, version: 12.5.0.2511, time stamp: 0x4e114b2a

Faulting module name: PBDWE125.dll, version: 12.5.2.5801, time stamp: 0x55c95faf

Exception code: 0xc0000005

Fault offset: 0x001ce4f0

Faulting process id: 0x1248

Faulting application start time: 0x01d15776765b674b

Faulting application path: C:\Program Files (x86)\Sybase\PowerBuilder 12.5\PB125.EXE

Faulting module path: C:\Program Files (x86)\Sybase\Shared\PowerBuilder\PBDWE125.dll

Report Id: 6e01c7f9-c36b-11e5-9fe8-989096a8952d

 

Any ideas welcome

 

Cheers

 

David

Get Sql And Set Sql

$
0
0

Is there anyway can I use  getsql and set sql to add another condition in where statement. The datawindow argument will not work due to more than 6 flexible choices like all  record  or selective record  for the report. Please find attached

SQLQuery1.png

 


SQLQuery2.png

how to use messagebox to print an date

$
0
0

how using the command message to see an date.

yehudaf.

Toolbar icons are not showing

$
0
0

hello..

I have replaced some toolbar icons in my application.When i run my application in another system the icons are not showing..i know this is the path problem .now i have given all the icons in one folder inside the application..Actually where i will give the icons which i want to show in the menu..

 

Regards

Sulfath

PowerBuilder .NET and *.LICX Files as Embedded Resource

$
0
0

Has anyone here had experience attempting to utilize *.licx files as embedded resources with vendor components who use this technique for licensing?

My attempt has the components referenced in PowerBuilder .NET not recognizing the file and its contents.

 

Thank you.


MLSync object - SQL Anywhere 17

$
0
0

Hi,

 

i need a MLSync object that is compatible with SQL Anywhere 17.

PB126 Build 4081 does only have MLServerVersion 16.

 

Does anyone know something about a new version?

 

Thanks

 

Regards,

 

Tobi

Composite Report with blank page (last page)

$
0
0

Hi All,

 

i have created a composite report with 2 datawindow. But encountered the last page of the composite report to be always blank.

 

tried to print the 2 datawindow individually and they work fine without any blank page.

 

powerbuilder : 12.5.1 build 4595

 

anyone have such encounter and manage to resolve ?

 

Rgds,

Chee Boon

Connection Security

$
0
0

Hi All,

 

Trying to flush out the issues with security for a PB app connecting to MS SQL Server.  It occurs to me that if someone has access to the .exe they could use a hex editor to peek in side.  I tried it and sure enough the connection password is plainly visible.  Is the answer for this to compile to machine code?  Does that work to obscure it?  Any other suggestions?  I'm hoping there's a best practice for this out there somewhere.

 

Thanks.

pb 11.5 connection to TLS1.1 webservice

$
0
0

Hi all,

 

I have a simple answer, but I find no answer on Google.

 

Is it possible to communicate from a pb 11.5 application with a webservice secured by TLS 1.1?

The webservice client is made by the .NET engine, so it rely on .NET framework 2. Is this enough?

 

When I try on their test server, I get only (failed) sslv3 handshakes.

The other party will end the SSL security and asked a minimum of TLS1.1.

 

 

So, if it can, must I do something with certificates?  Or something else?

 

Develop environment:

PB 11.5.1 Build 4608

Win 7

 

Regards

Danny

data insert problem

$
0
0

hi all...

when i insert values in to SQL database through power-builder application the data is not in order. they are randomly stored.. what should i do to save the data in SQL in order. 

 

with regards,

Delna

Save datawindow as PDF file in PB12

$
0
0

Hello,

 

I had a program that converts PSR files to PDF files using saveas PDF function in PB9.
We just upgraded the PB program to PB12 and upgraded adobe acrobat from old 5.x to the latest and application server to windows server 12(64 bit).

 

After the upgrade, the sae as function is not functioning anymore.

Can you please advise?


1. Does the SaveAs(PDF) function still requires GhostScript Distiller for PB12?
2. If yes, does the latest Adobe come with GhostScript required?

3. If the latest adobe doesn't come with GhostScript (Distiller) anymore, what's the latest version of GS we can go back to?
4. Is there special requirement regarding to the server name for windows server 12?

5. Does PB12 provide new solution to save datawindow to PDF format?

 

Thank you very much!

 

-Ping

Problems Changing Default Application Text Font

$
0
0

Hello,

 

I am using PB 12.5.2 5609 Win 7 Pro 64bit.

 

Lately, I am experiencing problems trying to set the default text font for application objects. I open the additional properties dialog and then change text font to the required font. Now If I go back, I get this:

 

Capture.PNG

or

Capture.PNG

 

I am able to change column, header and label fonts. Just text font does not seem to work.

 

Any idea what is going on and how to fix it?

 

Thanks.


Type Casting in PowerBuilder .NET 12.6

$
0
0

Well, yes I suppose I'm in denial<g> but...

 

Can anyone proffer (malaprop?) a workaround to the prohibition against direct type casting to achieve the equivalent of...

 

[C#]

  // Creates an IPEndPoint to capture the identity of the sending host.

  IPEndPoint sender = new IPEndPoint(IPAddress.Any, 0);

  EndPoint senderRemote = (EndPoint)sender;

 

...or even...

 

[Visual Basic]

  ' Creates an IPEndPoint to capture the identity of the sending host.

  Dim sender As New IPEndPoint(IPAddress.Any, 0)

  Dim senderRemote As EndPoint = CType(sender, EndPoint)

 

...hmmmm?

 

Thank you very much.

PB Newbie

$
0
0

Hi, I want to learn PB. If I may ask, where will I start to know the basics?

 

Thank you!

Powerbuilder Excel Setremote Error

$
0
0

Hi,

This is my code;

 

 

 

long handle, i, exsat = 3, sbul

integer varmis

 

 

sayfa1 = create OLEObject

VARMIS = sayfa1.ConnectToNewObject ('excel.sheet')

IF VARMIS <> 0 THEN

  messagebox("Dikkat","excel not found")

else

  messagebox("Bilgi","excel found")

END IF

sayfa1.application.visible = True

Sayfa1.Application.ActiveWindow.WindowState = 2

 

 

handle = OpenChannel("Excel", "Sheet1", HANDLE(w_test))

if handle <> -1 then

 

  messagebox("Bilgi","Sheet1 connection is open")

 

  SetRemote("R2C1", "value-1", handle)

  SetRemote("R2C2", "value-2", handle)

  SetRemote("R2C3", "value-3", handle)

end if

 

 

 

 

Sayfa1.Application.Cells.Select

Sayfa1.Application.Cells.Font.Name = "Arial Tur"

Sayfa1.Application.Cells.Font.Size = 8

Sayfa1.Application.ActiveCell.Select

 

 

CloseChannel(handle, Handle(w_test))

 

 

 

 

Code is not working one computer, windows10-office 2010 installed. Code working until this line,

 

 

handle = OpenChannel("Excel", "Sheet1", HANDLE(w_test))


and waiting, not responding.



Thanks

DW Painter question

$
0
0

I have a tabular datawindow that is designed and I want to change the name of on of the database columns. No other changes but in the name.  When I do this the DW resets back to the defaults destroying hours of work. Is there a way to prevent this behavior from occurring.  Can I edit a SRD file directly searching and replacing the original column name?

 

Thanks

TPS

What is your prefered source control version tool ?

$
0
0

What source control version control tool are you using with PowerBuilder ?

What is your prefered one and why ?

Viewing all 2935 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>