on 12-21-2012 6:40 AM
Hi all
PB classic 12.5.1 & MS SQL Server 2008 R2
I already create dynamic datawindow object at runtime but how I can save it in a PBD at runtime
Also, how I can save it in PBL at runtime and use it without compilation for my application
finestraco
Hi all
Thanks for your help, actually I do not know the fields names at runtime and also there is no table at all
for this reason I create external datawindow and I accept from user which fields (name,type,..etc)
after that I create the table .for data entry
but how i can convert the created datawindow on-fly (external) to another datawindow (SQL SELECT )
thanks again for your help
finestraco
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chris
Thanks for your reply, I already use SyntaxFromSQL(), But I thought that there is another easy way to do that.
Actually, the user designs a card and add fields like text,column,picture,barcode,line,capture an image ..etc and after that I create external datawindow on-fly then I create another SQL SELECTDW for dataentry called a production form which let the users enter data to the a table I created according to External DW, after that the user design and print a report according to SQL Select DW , It means that I created three DW one as External and two as SQL SELECT (Card,Form,Report).. I thought maybe another way to do all previuos works in proper manner.
Thanks again Mr. Chris and for all
finestraco
hi all
I forget to tell that, when I try to set in printpreview mode for the created datawindow on-fly to use zoom in & out, but it gives error null object reference....
thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi finestraco;
You do not need to place the DWO into PrintPreview mode to zoom it. Just use the following syntax to zoom in by 2x (200%) ...
DC.Modify ( "DataWindow.Zoom='200' ")
Note: the only DW object type that will not zoom is a graph. In that case, you definitely need to enter print preview mode.
HTH
Regards ... Chris
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.