Quantcast
Channel: SCN : Discussion List - PowerBuilder Developer Center
Viewing all 2881 articles
Browse latest View live

prints barcode

$
0
0

Hellow all ,

 

i been wondering how do i print ( simple printer ) a square barcode image ( image attached )

i have been  told it can "hold" a lot more info than the old one

 

working with pb12.5 classic

 

Thanks

Moshe


unhandled win32 exception when Enter button is hit

$
0
0

Hi,

 

In my PB application, in one of the windows , the command button cb_ok is the default. During the run time, using the executable,

if we hit on Enter, the application is crashing with unhandled win 32 exception. At the same time, clicking on the command button is working fine.

 

Another strange thing is, the application is not crashing in the same scenario when run from Powerbuilder IDE. So I could not debug and understand the reasons for crash.

 

Can any one please advice me how I can attempt to find the root cause of this issue.

 

Best Regards,

 

Kiran

How to connect to MS SQL Compact Edition?

$
0
0

Hi All.

 

I am using PB 12.5.2 Classic.

I wish to make a connection to MS SQL Compact Edition 4.0.

How do I do this?

I understand that ODBC is not an option.

To use OLE DB I need to know who the Provider is. How do I find that?

 

I am beginning to suspect that I cannot do this with Classic.

Would PowerBuilder 12.5 .NET do it? I have seen a suggestion that SqlCeConnection

can be used but it is not available (I think) in Classic.

 

Please assist.

 

TIA

SAVEAS excel! PB 6.5

$
0
0

Is it posible to change properties of the excel file, saved with SAVEAS? For example, width of some columns?  tia,  AUGUSTO

i dont overcome to the message in pb125.exe - dhcpcsv6.dll error ?

$
0
0

i dont overcome to the message in pb125.exe - dhcpcsv6.dll error ?

Using FirebirdSql.Data.FirebirdClient.dll with ADO.NET in PB 12.5 .NET

$
0
0

Is there a chance to add this in the database painter in the connect/information namespace?

 

Or if there is no chance how to make the connection string 'known' to my application?

 

Where must I 'place' the DLL, so that PB will find it? Any registration for the DLL needed? And if so: where?

 

I tried using system.data.odbc but there I run against the timestamp, frequently used in my database and friends are telling me the native DLL is much more reliable and faster...

 

In my application (migrated...) I tried to put:

sqlca.DBParm =  "Namespace='FirebirdSQL.Data.FirebirdClient',DataSource='localhost', 'Database=localhost:C:\\IDBREFRW.FDB'"

 

thanks!

How can I search in Powerbuilder IDE for object comments?

$
0
0

Hi, I have an PB App with 79 Library & tons of objects. I need to search a specific comment in the objects comments.

 

My PB version is11.2 build 9097.

Byte[] to PDF

$
0
0

Hello everyone!

 

I'm receiving a PDF-document in byte[] format which I would like to show to my users.

What are my options here in PB Classic 12.5?

 

I've been looking at the Adobe Acrobat OLE object which seems to furfill my needs. I would prefer this operation to be done without having to write to disk, meaning that I can show the PDF directly from the byte array. Is this possible?

 

Also a code example thats shows use of the OLE would be highly appreciated


Changing dynamically the Picture in a PictureButton control

$
0
0

How can I change dynamically the picture assigned to a PictureButton control?

 

I'm using in a script:

 

button.PictureName="c:\resource_directory\newpicture.bmp"

 

and I have a reference in the resource file to "c:\resource_directory\newpicture.bmp", but it doesn´t work in the executable files, if I don´t have the c:\resource_directory\newpicture.bmp, in the client computer.

 

TIA

 

AUGUSTO

Question About Apparent Known Save As Crash Issue With Infomaker 12.0

$
0
0

Apparently with Infomaker 12.0, if your report name is 41 characters or greater in length, attempting to perform a "Save as" against that report will result in Infomaker crashing.

 

This issue is referred to in the below thread ("The user states that he has encountered crashes adding a column to a dw, moving or resizing a column, opening a report and doing a save as  (41 character bug with save as noted).").

 

http://scn.sap.com/message/14171354

 

 

With this being said, I have a couple questions.

 

1. Is there an official published bug document on this issue somewhere, and if so, what is the URL for that bug document?

 

2. Has this issue been fixed in any version of Infomaker newer than 12.0? If so, what version of Infomaker was it originally fixed in?

 

3. If Infomaker 12.0 cannot be upgraded, is there a known workaround for this issue? When I refer to a workaround, I mean is there a way to fix a report that has already been given a name of 41 characters or more?

 

 

I appreciate any insight that can be provided.

PB 12.5 Sort Missing Ascending/Descending checkbox

$
0
0

When calling sort() for my datawindow and passing in a Null String as an argument, the sort dialog window pops up. It displays the columns and a heading for Ascending. However, the checkbox for Ascending/Descending is not visible. Anyone else experience this?

Synchronising databases

$
0
0

I am implementing a local database for off-line usage.

However, I need to synchronize it with the main database when on-line.

I am looking for tools/techniques/tips/code/suggestions as to the

best way to go about doing this.

 

All comments welcome.

TIA

confusing: the usage of inv_linkage.of_setTransobject

$
0
0

Friends,

 

 

PB 7 with 7 pfc's

 

In our existing ERP system they have used the below code

 

dw1_inv_linkage.of_setTransobject(sqlca)


in of the window open event. Inside this window there are 2 datawindows(master and detail)

 

the master dw_1 has student rollnumber,name and batch

the detail dw_2 has complete details of the above selected rollnumber.

 

Now my doubt is when i open this window. i am getting the records of the students as per my user login of this erp system.  

the user login is the id for class tutor. the records are getting filtered according to the class tutor.

But i checked sql syntax in the dw_1's design...they are not passing any parameter for the class tutor to this dw_1 then how come the records are filtered as per the class tutor id.

Is this line dw1_inv_linkage.of_setTransobject(sqlca) doing this trick?

As i am new to powerbuilder, its taking lots of time to find out the solution.

hope somebody will help me.

 

thanks

Trying to pass a large byte array to a web service from PowerBuilder Classic 12.5

$
0
0

Has anyone had any luck passing large byte arrays to a web service from PowerBuilder Classic 12.5?

 

I have created a web service that is running on an IIS server. 
I call this web service from PowerBuilder Classic 12.5.
This web service is used to store and retrieve PDF files from an imaging system.

I have tried using PowerBuilder .NET to create the Client Proxy but ran into an issue of PB.Net randomly not being able to find part of the object returned by the web service.

My latest attempt is to write the Client Proxy in VB.NET and it works except I am unable to pass the bytes from any PDFs over 16384 in size because I am getting a "The maximum array length quota (16384) has been exceeded while reading XML data." error.

I am setting the myBinding.ReaderQuotas.MaxArrayLength to Int32.MaxValue and still get the error.

It looks like the COM object is overriding any changes that I make to the MaxArrayLength.

 

I have include an example of my code so far:

 

'VB.NET code (with ChartProxyClass Project Properties -> Compile -> Register for COM interop checkbox checked)
Imports System
Imports System.ServiceModel

<ComClass(ChartsProxyClass1.ClassId, ChartsProxyClass1.InterfaceId, ChartsProxyClass1.EventsId)>
Public Class ChartsProxyClass1
    Public Const ClassId As String = "63926C42-E702-4747-8A12-1ED9D345C098"
    Public Const InterfaceId As String = "35778944-B43D-4A19-A8CF-992373219616"
    Public Const EventsId As String = "8B798D1E-6A24-4679-B22C-E49A23EA9E32"

 

    Public Sub New()
        MyBase.New()
    End Sub


    <ServiceContract()>
    Public Interface IChartsWebService

        <OperationContract()>
        Function SaveImage(ByVal image As Byte()) As ServiceReference1.UploadImageResult

    End Interface

 

    Public Function of_Uploadimage(ByVal image As Byte(), ByRef statusCode As Long, ByRef errorMessage As String) As Long
        Dim myBinding As New BasicHttpBinding
        myBinding.ReaderQuotas.MaxArrayLength = Int32.MaxValue

        Dim myEndpoint As New EndpointAddress("http://myWebServer/ChartsWebservice/Service1.svc")
        Dim myChannelFactory As ChannelFactory(Of IChartsWebService) _
            = New ChannelFactory(Of IChartsWebService)(myBinding, myEndpoint)
        Dim client As IChartsWebService = myChannelFactory.CreateChannel()
        Dim docHandle As Long
        Dim rm As ServiceReference1.UploadImageResult

        Try
            rm = client.SaveImage(image)
            statusCode = rm.StatusCode
            errorMessage = rm.ErrorMessage
            docHandle = rm.DocHandle
        Catch e As Exception
            statusCode = -1
            errorMessage = e.Message
            docHandle = -1
        End Try

        myChannelFactory.Close()

        Return docHandle

    End Function

End Class


// PowerBuilder code
public function long of_save_image (string as_cache_filename);
   Integer li_filehandle
   blob lblb_file_blob
   Long ll_StatusCode = 0, ll_DocHandle = 0
   String ls_ErrorMessage = ""
   Long ll_return
   oleobject l_proxywrapper
   byte lb_ImageBytes[]

   li_filehandle = FileOpen(as_cache_filename, StreamMode!)
   FileReadEx(li_filehandle, lblb_file_blob)
   FileClose(li_filehandle)

   l_proxywrapper = CREATE oleobject
   ll_return = l_proxywrapper.ConnectToNewObject("ChartProxyClass.ChartsProxyClass1")

   // Pass the bytes from the file to the web service
   lb_ImageBytes = GetByteArray(lblb_file_blob)
   ll_DocHandle = l_proxywrapper.of_uploadimage(lb_ImageBytes, REF ll_StatusCode, REF ls_ErrorMessage)

   RETURN ll_DocHandle

end function

XP PB11.5 Memory Allocation

$
0
0

We've just come across an issue where a string is hitting an upper limit and causing a GPF.

 

According to the Docs...

 

string

A standard datatype that is characters enclosed in single (') or double (") quotation marks, including a string of 0 length (the empty string ""). The maximum number of characters in a string is 2,147,483,647.

 

I tried this simple bit of code..

 

String a, b, c

a = Fill("x", 90000000)            // 90 million

b = Fill("y", 20000000)            // 20 million

c = a + b

 

When it reaches the concatenation line, the application faults.   obviously 110MB is quite a bit less than 2GB

 

There is about 1.3GB of free memory, so it's not that.

 

PB 11.5 build 2506

Windows XP & 7

 

Thanks

Adrian


error when running pb125 or microsoft outlook

$
0
0

i got this message "c:\windows\system32\dhcpcsv6.dll" error contact Microsoft or Lenovo ; maybe this error come from network connection (IPV4 or IPV6) for WEBSERVICES FILEWALL

Third party ADO.NET driver providers

$
0
0

Dear All,

 

it seems nobody can answer my particular question about using a Firebird third part ado.net driver.

 

So let me rephrase more general"

 

Anybody tried to use third party Ado.net drivers with PB 12.5.2 .NET?

 

I need some/an answer to this question as soon as possible (PROGRES would be an alternative to FIREBIRD). SYSTEM.DATA.ODBC is not(!!!) an alternative for discussion and I would not like to recommend to switch to one of the 'mainstream' databases...

 

thanks

best regards

juergen

'

caching on EAServer

$
0
0

We have several PB components (12.5.1) hosted in EAServer 6.3.1, that call external web services (using .NET engine).

We are stacked with SoapConnection caching:

  • First, it seems that we cannot set UseConnectionCache to true, even if we change the implementation to use EasySoap (the documentation says the default is false, and for EAServer "....you must not change the default").
  • Second, with .NET engine the documentation does not say anything about caching, so we would expect the default .NET behavior which is to re-use TCP connections. But by monitoring the network (e.g. with Wireshark) we can see that we have a new TCP connection for each request (note that the previous connection is always closed, regardless of the KeepAlive setting)

It seems that the lack of caching causes serious performance issues, because each web service call spends an additional 3'' - 4'' to complete. The same services when called from a .NET application take the same time in the first call, but then they take 50 to 100 miliseconds for each additional call. By monitoring network traffic, we can see that only a single TCP connection is being used from .NET, which does not happen with PB.

Can you clarify how connection caching is supported in PB components hosted in EAServer?

 

Thank you in advance

Setting the SessionID and EndPoint for SForceService in PB 12.5

$
0
0

Hi All,

 

I have created a proxy to SalesForce and am able to get back results on the login.

 

The problem I am having is re-setting the endpoint and session id on the proxy to continue to do further work.

 

I created a log file and the error is Destination URL not reset. The URL returned from login must be set in the SforceService.

 

Can anyone give me any advice. Using Powerbuilder 12.5.2 build 5550

 

Regards,

Stuart

Working with dddw

$
0
0

Hi all ,

 

I want to create a stimulation which while user starts writing in a dddw field in a datawindow the list drops down and filter happens

atumatically?

using pb12.5 / 11.5

 

Thanks

Moshe

Viewing all 2881 articles
Browse latest View live


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