Is there any issue in creating dynamic datawindow in Datawindow.Net?

Hi

I have created a datawindow object in PB10 and exported in to SRD file.

In my dot.net application, I read the file into string and issued the
following command to create datawindow dynamically.
But it throws an methodfailureexception error as "incorrect syntax at line
18 and column 14.

Dim ls_create As String
Dim fs As FileStream
fs = New FileStream(curFileName, FileMode.Open, FileAccess.Read)
'declaring a FileStream to open the file named file.doc with access mode of
reading
Dim d As New StreamReader(fs)
'creating a new StreamReader and passing the filestream object fs as
argument
d.BaseStream.Seek(0, SeekOrigin.Begin)
ls_create = d.ReadToEnd()
d.Close()

But Im able to create the datawindow successfully in PB10 using the string
read from the same SRD file which is used in .Net application.

Is there any issue in creating dynamic datawindow in DotNet?


TIA

bgb


0
BGB
12/22/2004 6:49:32 AM
sybase.datawindow.net 2302 articles. 0 followers. Follow

4 Replies
749 Views

Similar Articles

[PageSpeed] 7

I haven't tried importing a DataWindow string from an external file as
you described below, but I do have an example application using
Dynamic DataWindows available on CodeXchange (see the URL below). 

Regards,
Dave Fish
Sybase

TeamSybase blogs: http://www.teamsybase.net/blogs

DataWindow.NET code examples available on CodeXchange:
http://datawindownet.codexchange.sybase.com

On 21 Dec 2004 22:49:32 -0800, "BGB" <bgb@ewaksoft.com> wrote:

>Hi
>
>I have created a datawindow object in PB10 and exported in to SRD file.
>
>In my dot.net application, I read the file into string and issued the
>following command to create datawindow dynamically.
>But it throws an methodfailureexception error as "incorrect syntax at line
>18 and column 14.
>
>Dim ls_create As String
>Dim fs As FileStream
>fs = New FileStream(curFileName, FileMode.Open, FileAccess.Read)
>'declaring a FileStream to open the file named file.doc with access mode of
>reading
>Dim d As New StreamReader(fs)
>'creating a new StreamReader and passing the filestream object fs as
>argument
>d.BaseStream.Seek(0, SeekOrigin.Begin)
>ls_create = d.ReadToEnd()
>d.Close()
>
>But Im able to create the datawindow successfully in PB10 using the string
>read from the same SRD file which is used in .Net application.
>
>Is there any issue in creating dynamic datawindow in DotNet?
>
>
>TIA
>
>bgb
>
>

0
dfish
12/22/2004 1:42:02 PM
Hi Dave

I could not access the site given.

The given link opens the project home page ,which shows the summary and
after clicked the link ("open-source", "datamanagement") takes to list page
which contains the datawindownet link. But when I click this link again it
shows the project home page in round robin.

Tx

bgb


"Dave Fish [Team Sybase]" <dfish@_no_spam_sybase.com> wrote in message
news:41c97959.167757342@forums.sybase.com...
> I haven't tried importing a DataWindow string from an external file as
> you described below, but I do have an example application using
> Dynamic DataWindows available on CodeXchange (see the URL below).
>
> Regards,
> Dave Fish
> Sybase
>
> TeamSybase blogs: http://www.teamsybase.net/blogs
>
> DataWindow.NET code examples available on CodeXchange:
> http://datawindownet.codexchange.sybase.com
>
> On 21 Dec 2004 22:49:32 -0800, "BGB" <bgb@ewaksoft.com> wrote:
>
> >Hi
> >
> >I have created a datawindow object in PB10 and exported in to SRD file.
> >
> >In my dot.net application, I read the file into string and issued the
> >following command to create datawindow dynamically.
> >But it throws an methodfailureexception error as "incorrect syntax at
line
> >18 and column 14.
> >
> >Dim ls_create As String
> >Dim fs As FileStream
> >fs = New FileStream(curFileName, FileMode.Open, FileAccess.Read)
> >'declaring a FileStream to open the file named file.doc with access mode
of
> >reading
> >Dim d As New StreamReader(fs)
> >'creating a new StreamReader and passing the filestream object fs as
> >argument
> >d.BaseStream.Seek(0, SeekOrigin.Begin)
> >ls_create = d.ReadToEnd()
> >d.Close()
> >
> >But Im able to create the datawindow successfully in PB10 using the
string
> >read from the same SRD file which is used in .Net application.
> >
> >Is there any issue in creating dynamic datawindow in DotNet?
> >
> >
> >TIA
> >
> >bgb
> >
> >
>


0
BGB
12/23/2004 5:00:58 AM
When you go to this link: http://datawindownet.codexchange.sybase.com/

click on the Documents & files link on the menu along the left hand
side of the page. You'll find the Dynamic DataWindow example
application under the C# or Visual Basic .NET folders. 

If you haven't registered for the project you will need to do that.
Request the Observer role. 

Regards,
Dave Fish
Sybase

TeamSybase blogs: http://www.teamsybase.net/blogs

DataWindow.NET code examples available on CodeXchange:
http://datawindownet.codexchange.sybase.com

On 22 Dec 2004 21:00:58 -0800, "BGB" <bgb@ewaksoft.com> wrote:

>Hi Dave
>
>I could not access the site given.
>
>The given link opens the project home page ,which shows the summary and
>after clicked the link ("open-source", "datamanagement") takes to list page
>which contains the datawindownet link. But when I click this link again it
>shows the project home page in round robin.
>
>Tx
>
>bgb
>
>
>"Dave Fish [Team Sybase]" <dfish@_no_spam_sybase.com> wrote in message
>news:41c97959.167757342@forums.sybase.com...
>> I haven't tried importing a DataWindow string from an external file as
>> you described below, but I do have an example application using
>> Dynamic DataWindows available on CodeXchange (see the URL below).
>>
>> Regards,
>> Dave Fish
>> Sybase
>>
>> TeamSybase blogs: http://www.teamsybase.net/blogs
>>
>> DataWindow.NET code examples available on CodeXchange:
>> http://datawindownet.codexchange.sybase.com
>>
>> On 21 Dec 2004 22:49:32 -0800, "BGB" <bgb@ewaksoft.com> wrote:
>>
>> >Hi
>> >
>> >I have created a datawindow object in PB10 and exported in to SRD file.
>> >
>> >In my dot.net application, I read the file into string and issued the
>> >following command to create datawindow dynamically.
>> >But it throws an methodfailureexception error as "incorrect syntax at
>line
>> >18 and column 14.
>> >
>> >Dim ls_create As String
>> >Dim fs As FileStream
>> >fs = New FileStream(curFileName, FileMode.Open, FileAccess.Read)
>> >'declaring a FileStream to open the file named file.doc with access mode
>of
>> >reading
>> >Dim d As New StreamReader(fs)
>> >'creating a new StreamReader and passing the filestream object fs as
>> >argument
>> >d.BaseStream.Seek(0, SeekOrigin.Begin)
>> >ls_create = d.ReadToEnd()
>> >d.Close()
>> >
>> >But Im able to create the datawindow successfully in PB10 using the
>string
>> >read from the same SRD file which is used in .Net application.
>> >
>> >Is there any issue in creating dynamic datawindow in DotNet?
>> >
>> >
>> >TIA
>> >
>> >bgb
>> >
>> >
>>
>
>

0
dfish
12/23/2004 5:37:47 PM
Thanks Deve

I got it

bgb



"Dave Fish [Team Sybase]" <dfish@_no_spam_sybase.com> wrote in message
news:41cb01ea.89706260@forums.sybase.com...
> When you go to this link: http://datawindownet.codexchange.sybase.com/
>
> click on the Documents & files link on the menu along the left hand
> side of the page. You'll find the Dynamic DataWindow example
> application under the C# or Visual Basic .NET folders.
>
> If you haven't registered for the project you will need to do that.
> Request the Observer role.
>
> Regards,
> Dave Fish
> Sybase
>
> TeamSybase blogs: http://www.teamsybase.net/blogs
>
> DataWindow.NET code examples available on CodeXchange:
> http://datawindownet.codexchange.sybase.com
>
> On 22 Dec 2004 21:00:58 -0800, "BGB" <bgb@ewaksoft.com> wrote:
>
> >Hi Dave
> >
> >I could not access the site given.
> >
> >The given link opens the project home page ,which shows the summary and
> >after clicked the link ("open-source", "datamanagement") takes to list
page
> >which contains the datawindownet link. But when I click this link again
it
> >shows the project home page in round robin.
> >
> >Tx
> >
> >bgb
> >
> >
> >"Dave Fish [Team Sybase]" <dfish@_no_spam_sybase.com> wrote in message
> >news:41c97959.167757342@forums.sybase.com...
> >> I haven't tried importing a DataWindow string from an external file as
> >> you described below, but I do have an example application using
> >> Dynamic DataWindows available on CodeXchange (see the URL below).
> >>
> >> Regards,
> >> Dave Fish
> >> Sybase
> >>
> >> TeamSybase blogs: http://www.teamsybase.net/blogs
> >>
> >> DataWindow.NET code examples available on CodeXchange:
> >> http://datawindownet.codexchange.sybase.com
> >>
> >> On 21 Dec 2004 22:49:32 -0800, "BGB" <bgb@ewaksoft.com> wrote:
> >>
> >> >Hi
> >> >
> >> >I have created a datawindow object in PB10 and exported in to SRD
file.
> >> >
> >> >In my dot.net application, I read the file into string and issued the
> >> >following command to create datawindow dynamically.
> >> >But it throws an methodfailureexception error as "incorrect syntax at
> >line
> >> >18 and column 14.
> >> >
> >> >Dim ls_create As String
> >> >Dim fs As FileStream
> >> >fs = New FileStream(curFileName, FileMode.Open, FileAccess.Read)
> >> >'declaring a FileStream to open the file named file.doc with access
mode
> >of
> >> >reading
> >> >Dim d As New StreamReader(fs)
> >> >'creating a new StreamReader and passing the filestream object fs as
> >> >argument
> >> >d.BaseStream.Seek(0, SeekOrigin.Begin)
> >> >ls_create = d.ReadToEnd()
> >> >d.Close()
> >> >
> >> >But Im able to create the datawindow successfully in PB10 using the
> >string
> >> >read from the same SRD file which is used in .Net application.
> >> >
> >> >Is there any issue in creating dynamic datawindow in DotNet?
> >> >
> >> >
> >> >TIA
> >> >
> >> >bgb
> >> >
> >> >
> >>
> >
> >
>


0
BGB
12/24/2004 2:12:37 PM
Reply: