Click here to Skip to main content
15,894,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello Everyone,

I was set tha paper-size of a reporte (datawindow) in my powerbuilder aplication.

I wrote the following code in powerbuilder:

VB
dw_impresion.Object.DataWindow.Print.preview=true
dw_impresion.Object.DataWindow.Print.Paper.Size=256   
//HERE APLICATION FAILED:
dw_impresion.Object.DataWindow.Print.CustomPage.Length = 334 //THIS LINE dw_impresion.Object.DataWindow.Print.CustomPage.Width = 191


In windows xp this run correctly

But in windows 2000 server the aplication show the following error:

"Error accessing External object property length"

The image of the error is:
<img src='http://img811.imageshack.us/img811/1484/errordevistapreliminard.png' border='0'/>


There is a way to eliminate the error?



Someone would can help me???
Posted
Updated 2-Mar-12 12:44pm
v3
Comments
Dave Kreskowiak 2-Mar-12 20:28pm    
Uhhh...this really doesn't have anything to do with C# or Visual Studio. What gives with using those tags on this post??
leocode7 7-Mar-12 11:48am    
please someone answer!!!!!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900