Anyone know where I can find a sample RDL that is styled like an invoice
form?
Header - contains Sold To/Ship To
Detail - Invoice Line Items
Footer - contains invoice totals
TIA
TinaTina,
Reporting Services installs sample reports. There is one particular report
you could probably use as template.
The report is called Sales Order Detail report. It resembles an invoice. You
should be able to access this report in http://<server>/ReportServer in the
SampleReports folder. You can access the design of this report in Visual
Studio .Net.
Dave
"Tina Smith" <tb.smith@.earthlink.net> wrote in message
news:%23OhIxkM9EHA.2192@.TK2MSFTNGP14.phx.gbl...
> Anyone know where I can find a sample RDL that is styled like an invoice
> form?
> Header - contains Sold To/Ship To
> Detail - Invoice Line Items
> Footer - contains invoice totals
> TIA
> Tina
>|||Thanks David, I'll have a look at the sample.
"David Pope" <dpope@.nospam.satx.rr.com> wrote in message
news:OMPQ7sM9EHA.2540@.TK2MSFTNGP09.phx.gbl...
> Tina,
> Reporting Services installs sample reports. There is one particular report
> you could probably use as template.
> The report is called Sales Order Detail report. It resembles an invoice.
You
> should be able to access this report in http://<server>/ReportServer in
the
> SampleReports folder. You can access the design of this report in Visual
> Studio .Net.
> Dave
> "Tina Smith" <tb.smith@.earthlink.net> wrote in message
> news:%23OhIxkM9EHA.2192@.TK2MSFTNGP14.phx.gbl...
> > Anyone know where I can find a sample RDL that is styled like an invoice
> > form?
> >
> > Header - contains Sold To/Ship To
> > Detail - Invoice Line Items
> > Footer - contains invoice totals
> >
> > TIA
> > Tina
> >
> >
>|||That's a start but I need to repeat the BillTo & ShipTo on every page.
"David Pope" <dpope@.nospam.satx.rr.com> wrote in message
news:OMPQ7sM9EHA.2540@.TK2MSFTNGP09.phx.gbl...
> Tina,
> Reporting Services installs sample reports. There is one particular report
> you could probably use as template.
> The report is called Sales Order Detail report. It resembles an invoice.
You
> should be able to access this report in http://<server>/ReportServer in
the
> SampleReports folder. You can access the design of this report in Visual
> Studio .Net.
> Dave
> "Tina Smith" <tb.smith@.earthlink.net> wrote in message
> news:%23OhIxkM9EHA.2192@.TK2MSFTNGP14.phx.gbl...
> > Anyone know where I can find a sample RDL that is styled like an invoice
> > form?
> >
> > Header - contains Sold To/Ship To
> > Detail - Invoice Line Items
> > Footer - contains invoice totals
> >
> > TIA
> > Tina
> >
> >
>|||Tina,
You can put the Bill To and Ship To information in the Table Header and have
it repeat.
Dave
"Tina Smith" <tb.smith@.earthlink.net> wrote in message
news:uPYifJP9EHA.2680@.TK2MSFTNGP09.phx.gbl...
> That's a start but I need to repeat the BillTo & ShipTo on every page.
> "David Pope" <dpope@.nospam.satx.rr.com> wrote in message
> news:OMPQ7sM9EHA.2540@.TK2MSFTNGP09.phx.gbl...
>> Tina,
>> Reporting Services installs sample reports. There is one particular
>> report
>> you could probably use as template.
>> The report is called Sales Order Detail report. It resembles an invoice.
> You
>> should be able to access this report in http://<server>/ReportServer in
> the
>> SampleReports folder. You can access the design of this report in Visual
>> Studio .Net.
>> Dave
>> "Tina Smith" <tb.smith@.earthlink.net> wrote in message
>> news:%23OhIxkM9EHA.2192@.TK2MSFTNGP14.phx.gbl...
>> > Anyone know where I can find a sample RDL that is styled like an
>> > invoice
>> > form?
>> >
>> > Header - contains Sold To/Ship To
>> > Detail - Invoice Line Items
>> > Footer - contains invoice totals
>> >
>> > TIA
>> > Tina
>> >
>> >
>>
>|||That's what I'm working on now but I loose the free-form ability when
working in a table.
"David Pope" <dpope@.nospam.satx.rr.com> wrote in message
news:uw4KOPP9EHA.1404@.TK2MSFTNGP11.phx.gbl...
> Tina,
> You can put the Bill To and Ship To information in the Table Header and
have
> it repeat.
> Dave
> "Tina Smith" <tb.smith@.earthlink.net> wrote in message
> news:uPYifJP9EHA.2680@.TK2MSFTNGP09.phx.gbl...
> > That's a start but I need to repeat the BillTo & ShipTo on every page.
> >
> > "David Pope" <dpope@.nospam.satx.rr.com> wrote in message
> > news:OMPQ7sM9EHA.2540@.TK2MSFTNGP09.phx.gbl...
> >> Tina,
> >>
> >> Reporting Services installs sample reports. There is one particular
> >> report
> >> you could probably use as template.
> >>
> >> The report is called Sales Order Detail report. It resembles an
invoice.
> > You
> >> should be able to access this report in http://<server>/ReportServer in
> > the
> >> SampleReports folder. You can access the design of this report in
Visual
> >> Studio .Net.
> >>
> >> Dave
> >>
> >> "Tina Smith" <tb.smith@.earthlink.net> wrote in message
> >> news:%23OhIxkM9EHA.2192@.TK2MSFTNGP14.phx.gbl...
> >> > Anyone know where I can find a sample RDL that is styled like an
> >> > invoice
> >> > form?
> >> >
> >> > Header - contains Sold To/Ship To
> >> > Detail - Invoice Line Items
> >> > Footer - contains invoice totals
> >> >
> >> > TIA
> >> > Tina
> >> >
> >> >
> >>
> >>
> >
> >
>|||Welcome to Reporting Services. I am a Crystal Reports developer myself but
starting to understand Reporting Services.
Tip: You can select multiple cells and merge them. That is a huge help.
Dave
"Tina Smith" <tb.smith@.earthlink.net> wrote in message
news:exmn0TP9EHA.3588@.TK2MSFTNGP10.phx.gbl...
> That's what I'm working on now but I loose the free-form ability when
> working in a table.
> "David Pope" <dpope@.nospam.satx.rr.com> wrote in message
> news:uw4KOPP9EHA.1404@.TK2MSFTNGP11.phx.gbl...
>> Tina,
>> You can put the Bill To and Ship To information in the Table Header and
> have
>> it repeat.
>> Dave
>> "Tina Smith" <tb.smith@.earthlink.net> wrote in message
>> news:uPYifJP9EHA.2680@.TK2MSFTNGP09.phx.gbl...
>> > That's a start but I need to repeat the BillTo & ShipTo on every page.
>> >
>> > "David Pope" <dpope@.nospam.satx.rr.com> wrote in message
>> > news:OMPQ7sM9EHA.2540@.TK2MSFTNGP09.phx.gbl...
>> >> Tina,
>> >>
>> >> Reporting Services installs sample reports. There is one particular
>> >> report
>> >> you could probably use as template.
>> >>
>> >> The report is called Sales Order Detail report. It resembles an
> invoice.
>> > You
>> >> should be able to access this report in http://<server>/ReportServer
>> >> in
>> > the
>> >> SampleReports folder. You can access the design of this report in
> Visual
>> >> Studio .Net.
>> >>
>> >> Dave
>> >>
>> >> "Tina Smith" <tb.smith@.earthlink.net> wrote in message
>> >> news:%23OhIxkM9EHA.2192@.TK2MSFTNGP14.phx.gbl...
>> >> > Anyone know where I can find a sample RDL that is styled like an
>> >> > invoice
>> >> > form?
>> >> >
>> >> > Header - contains Sold To/Ship To
>> >> > Detail - Invoice Line Items
>> >> > Footer - contains invoice totals
>> >> >
>> >> > TIA
>> >> > Tina
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>>
>
Showing posts with label form. Show all posts
Showing posts with label form. Show all posts
Friday, March 30, 2012
Invoice form layout
Is there some way to simulate a fixed form layout for an invoice? I want to
have a fixed set of columns with dividing lines and totals boxes at the
bottom, regardless of how many actual rows of data are displayed. I've
tried 2 approaches (using PDF rendering only):
1. overlay a table with a set of manually drawn lines. This sort of works
for a single page, but if a 2nd page is required by the data it goes
completely haywire.
2. Use a table with conditional formatting. This is my current solution, BUT
a) the totals are always immediately after the last row, instead of at the
page bottom,
b) when the data requires just a little more than a single page the whole
table is moved to start on the 2nd page (where it fits in total due to less
header space) instead of starting on page 1 and continuing on page2 (hope
that makes sense).
Is there any published advice on designing this sort of page layout, or is
RS not really suited to the task?
brian smithHi Brian,
have you had any luck with this?
regards
Matt
"Brian Smith" <bsmith@.no_spam.schemiotics.co.uk> wrote in message
news:OElbad7nEHA.2300@.TK2MSFTNGP10.phx.gbl...
> Is there some way to simulate a fixed form layout for an invoice? I want
to
> have a fixed set of columns with dividing lines and totals boxes at the
> bottom, regardless of how many actual rows of data are displayed. I've
> tried 2 approaches (using PDF rendering only):
> 1. overlay a table with a set of manually drawn lines. This sort of works
> for a single page, but if a 2nd page is required by the data it goes
> completely haywire.
> 2. Use a table with conditional formatting. This is my current solution,
BUT
> a) the totals are always immediately after the last row, instead of at the
> page bottom,
> b) when the data requires just a little more than a single page the whole
> table is moved to start on the 2nd page (where it fits in total due to
less
> header space) instead of starting on page 1 and continuing on page2 (hope
> that makes sense).
> Is there any published advice on designing this sort of page layout, or is
> RS not really suited to the task?
> brian smith
>|||Nope, nothing :-(
My feeling is the RS cannot really do this sort of thing - it's really meant
for screen-based reporting.
brian
"Matt" <NoSpam:Matthew.Moran@.Computercorp.com.au> wrote in message
news:ugVGLjSpEHA.3324@.TK2MSFTNGP15.phx.gbl...
> Hi Brian,
> have you had any luck with this?
> regards
> Matt
> "Brian Smith" <bsmith@.no_spam.schemiotics.co.uk> wrote in message
> news:OElbad7nEHA.2300@.TK2MSFTNGP10.phx.gbl...
> > Is there some way to simulate a fixed form layout for an invoice? I want
> to
> > have a fixed set of columns with dividing lines and totals boxes at the
> > bottom, regardless of how many actual rows of data are displayed. I've
> > tried 2 approaches (using PDF rendering only):
> > 1. overlay a table with a set of manually drawn lines. This sort of
works
> > for a single page, but if a 2nd page is required by the data it goes
> > completely haywire.
> > 2. Use a table with conditional formatting. This is my current solution,
> BUT
> > a) the totals are always immediately after the last row, instead of at
the
> > page bottom,
> > b) when the data requires just a little more than a single page the
whole
> > table is moved to start on the 2nd page (where it fits in total due to
> less
> > header space) instead of starting on page 1 and continuing on page2
(hope
> > that makes sense).
> >
> > Is there any published advice on designing this sort of page layout, or
is
> > RS not really suited to the task?
> >
> > brian smith
> >
> >
>
have a fixed set of columns with dividing lines and totals boxes at the
bottom, regardless of how many actual rows of data are displayed. I've
tried 2 approaches (using PDF rendering only):
1. overlay a table with a set of manually drawn lines. This sort of works
for a single page, but if a 2nd page is required by the data it goes
completely haywire.
2. Use a table with conditional formatting. This is my current solution, BUT
a) the totals are always immediately after the last row, instead of at the
page bottom,
b) when the data requires just a little more than a single page the whole
table is moved to start on the 2nd page (where it fits in total due to less
header space) instead of starting on page 1 and continuing on page2 (hope
that makes sense).
Is there any published advice on designing this sort of page layout, or is
RS not really suited to the task?
brian smithHi Brian,
have you had any luck with this?
regards
Matt
"Brian Smith" <bsmith@.no_spam.schemiotics.co.uk> wrote in message
news:OElbad7nEHA.2300@.TK2MSFTNGP10.phx.gbl...
> Is there some way to simulate a fixed form layout for an invoice? I want
to
> have a fixed set of columns with dividing lines and totals boxes at the
> bottom, regardless of how many actual rows of data are displayed. I've
> tried 2 approaches (using PDF rendering only):
> 1. overlay a table with a set of manually drawn lines. This sort of works
> for a single page, but if a 2nd page is required by the data it goes
> completely haywire.
> 2. Use a table with conditional formatting. This is my current solution,
BUT
> a) the totals are always immediately after the last row, instead of at the
> page bottom,
> b) when the data requires just a little more than a single page the whole
> table is moved to start on the 2nd page (where it fits in total due to
less
> header space) instead of starting on page 1 and continuing on page2 (hope
> that makes sense).
> Is there any published advice on designing this sort of page layout, or is
> RS not really suited to the task?
> brian smith
>|||Nope, nothing :-(
My feeling is the RS cannot really do this sort of thing - it's really meant
for screen-based reporting.
brian
"Matt" <NoSpam:Matthew.Moran@.Computercorp.com.au> wrote in message
news:ugVGLjSpEHA.3324@.TK2MSFTNGP15.phx.gbl...
> Hi Brian,
> have you had any luck with this?
> regards
> Matt
> "Brian Smith" <bsmith@.no_spam.schemiotics.co.uk> wrote in message
> news:OElbad7nEHA.2300@.TK2MSFTNGP10.phx.gbl...
> > Is there some way to simulate a fixed form layout for an invoice? I want
> to
> > have a fixed set of columns with dividing lines and totals boxes at the
> > bottom, regardless of how many actual rows of data are displayed. I've
> > tried 2 approaches (using PDF rendering only):
> > 1. overlay a table with a set of manually drawn lines. This sort of
works
> > for a single page, but if a 2nd page is required by the data it goes
> > completely haywire.
> > 2. Use a table with conditional formatting. This is my current solution,
> BUT
> > a) the totals are always immediately after the last row, instead of at
the
> > page bottom,
> > b) when the data requires just a little more than a single page the
whole
> > table is moved to start on the 2nd page (where it fits in total due to
> less
> > header space) instead of starting on page 1 and continuing on page2
(hope
> > that makes sense).
> >
> > Is there any published advice on designing this sort of page layout, or
is
> > RS not really suited to the task?
> >
> > brian smith
> >
> >
>
Wednesday, March 28, 2012
Invalid working directory sp_adddistpublisher
Sam,
try using a non-administrative share, in the form of
\\computername\repldata.
Rgds,
Paul Ibison, SQL Server MVP,
www.replicationanswers.com/default.asp
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)
I shared a directory \\computername\temp. Then put that as the working
directory and I still receive the working directory error.
"Paul Ibison" <Paul.Ibison@.Pygmalion.Com> wrote in message
news:0f7201c53b5b$75466ea0$a601280a@.phx.gbl...
> Sam,
> try using a non-administrative share, in the form of
> \\computername\repldata.
> Rgds,
> Paul Ibison, SQL Server MVP,
> www.replicationanswers.com/default.asp
> (recommended sql server 2000 replication book:
> http://www.nwsu.com/0974973602p.html)
|||Are you on workstation or professional? Sometimes these versions are
limited by the number of simultaneous share accesses.
Run a net stop server and net start server to see if this fixes the
problem.
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
|||It still didn't work and I can access the directories when I type them in to
the explorer windows. I believe when I tried running the stored procedure in
query analyzer and it was sucessful. But when I run it from VB it does not
work. All other sp calls are working.
Again here is a repost of my last code section. It is very straightforward
but I don't understand why it works in QA and not VB:
Set cmd = New ADODB.Command
cmd.ActiveConnection = cn
cmd.CommandText = "sp_adddistpublisher"
cmd.CommandType = adCmdStoredProc
cmd.Parameters.Append cmd.CreateParameter("@.publisher", adVarChar,
adParamInput, 255)
cmd.Parameters.Append cmd.CreateParameter("@.distribution_db", adVarChar,
adParamInput, 255)
cmd.Parameters.Append cmd.CreateParameter("@.security_mode", adInteger,
adParamInput)
cmd.Parameters.Append cmd.CreateParameter("@.working_directory", adVarChar,
adParamInput, 255)
cmd.Parameters.Append cmd.CreateParameter("@.trusted", adVarChar,
adParamInput, 255)
cmd.Parameters.Append cmd.CreateParameter("@.thirdparty_flag", adInteger,
adParamInput)
cmd("@.publisher") = "BUSHWACKER"
cmd("@.distribution_db") = "distribution"
cmd("@.security_mode") = 1
cmd("@.working_directory") = "\\BUSHWACKER\C\temp"
cmd("@.trusted") = "false"
cmd("@.thirdparty_flag") = 0
cmd.Execute
"Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
news:opsov3eagkrj9kur@.hcottter-lap.ap.org...
> Are you on workstation or professional? Sometimes these versions are
> limited by the number of simultaneous share accesses.
> Run a net stop server and net start server to see if this fixes the
> problem.
> --
> Hilary Cotter
> Looking for a SQL Server replication book?
> http://www.nwsu.com/0974973602.html
> Looking for a FAQ on Indexing Services/SQL FTS
> http://www.indexserverfaq.com
|||Sam,
did you mean to post \\BUSHWACKER\C\temp? Surely it should be
\\BUSHWACKER\temp?
Rgds,
Paul Ibison
"Sam" <sam@.info.com> wrote in message
news:115gblqqpphh46c@.corp.supernews.com...
> It still didn't work and I can access the directories when I type them in
> to
> the explorer windows. I believe when I tried running the stored procedure
> in
> query analyzer and it was sucessful. But when I run it from VB it does
> not
> work. All other sp calls are working.
> Again here is a repost of my last code section. It is very straightforward
> but I don't understand why it works in QA and not VB:
> Set cmd = New ADODB.Command
> cmd.ActiveConnection = cn
> cmd.CommandText = "sp_adddistpublisher"
> cmd.CommandType = adCmdStoredProc
> cmd.Parameters.Append cmd.CreateParameter("@.publisher", adVarChar,
> adParamInput, 255)
> cmd.Parameters.Append cmd.CreateParameter("@.distribution_db", adVarChar,
> adParamInput, 255)
> cmd.Parameters.Append cmd.CreateParameter("@.security_mode", adInteger,
> adParamInput)
> cmd.Parameters.Append cmd.CreateParameter("@.working_directory", adVarChar,
> adParamInput, 255)
> cmd.Parameters.Append cmd.CreateParameter("@.trusted", adVarChar,
> adParamInput, 255)
> cmd.Parameters.Append cmd.CreateParameter("@.thirdparty_flag", adInteger,
> adParamInput)
> cmd("@.publisher") = "BUSHWACKER"
> cmd("@.distribution_db") = "distribution"
> cmd("@.security_mode") = 1
> cmd("@.working_directory") = "\\BUSHWACKER\C\temp"
> cmd("@.trusted") = "false"
> cmd("@.thirdparty_flag") = 0
> cmd.Execute
> "Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
> news:opsov3eagkrj9kur@.hcottter-lap.ap.org...
>
|||yes I used the \\bushwacker\temp in the actual stored procedure. Why does
it work there and not in the source code of vb.
"Paul Ibison" <Paul.Ibison@.Pygmalion.Com> wrote in message
news:#ytrEWUPFHA.3408@.TK2MSFTNGP14.phx.gbl...[vbcol=seagreen]
> Sam,
> did you mean to post \\BUSHWACKER\C\temp? Surely it should be
> \\BUSHWACKER\temp?
> Rgds,
> Paul Ibison
> "Sam" <sam@.info.com> wrote in message
> news:115gblqqpphh46c@.corp.supernews.com...
in[vbcol=seagreen]
procedure[vbcol=seagreen]
straightforward[vbcol=seagreen]
adVarChar,
>
|||Sam,
just to confirm, you previously posted up : cmd("@.working_directory") =
"\\BUSHWACKER\C\temp"
this looks like a copy and paste from a .NET application, and I can't
imagine you retyped it all, so did you later change it and remove the '\C'?
Assuming you have tried \\BUSHWACKER\temp ... I don't have .NET installed on
my virtual PC, but perhaps there is a way you could narrow down the issue.
Create a wrapper stored procedure that calls sp_adddistpublisher and check
it works in QA with no values for the parameters ie set up defaults to each
parameter in the wrapper procedure. Call this proicedure from .NET as you
have done without parameters and check this works. Then add just the wrapper
version of @.working_directory to the parameters collection and send it
through to call the real sp_adddistpublisher. At some stage in the above
process, it should become clearer what the issue is.
Rgds,
Paul Ibison
|||Yes the code I copy and pasted was the code I used after the initial
failure. Sorry for the confusion. I used \\BUSHWACKER\temp
in the code I was testing on before I posted to the newsgroup.
I will try what you have mentioned below. Its a very good idea. I assume
you want to see if its related to permissions or the sp call from vb thats
causing the error. Am I correct?
"Paul Ibison" <Paul.Ibison@.Pygmalion.Com> wrote in message
news:Ozeo#9qPFHA.532@.TK2MSFTNGP09.phx.gbl...
> Sam,
> just to confirm, you previously posted up : cmd("@.working_directory") =
> "\\BUSHWACKER\C\temp"
> this looks like a copy and paste from a .NET application, and I can't
> imagine you retyped it all, so did you later change it and remove the
'\C'?
> Assuming you have tried \\BUSHWACKER\temp ... I don't have .NET installed
on
> my virtual PC, but perhaps there is a way you could narrow down the issue.
> Create a wrapper stored procedure that calls sp_adddistpublisher and check
> it works in QA with no values for the parameters ie set up defaults to
each
> parameter in the wrapper procedure. Call this proicedure from .NET as you
> have done without parameters and check this works. Then add just the
wrapper
> version of @.working_directory to the parameters collection and send it
> through to call the real sp_adddistpublisher. At some stage in the above
> process, it should become clearer what the issue is.
> Rgds,
> Paul Ibison
>
|||Adding the stored procedure to a wrapper worked and when I add it to VB it
works as well.
Why won't it work directly though?
"Paul Ibison" <Paul.Ibison@.Pygmalion.Com> wrote in message
news:Ozeo#9qPFHA.532@.TK2MSFTNGP09.phx.gbl...
> Sam,
> just to confirm, you previously posted up : cmd("@.working_directory") =
> "\\BUSHWACKER\C\temp"
> this looks like a copy and paste from a .NET application, and I can't
> imagine you retyped it all, so did you later change it and remove the
'\C'?
> Assuming you have tried \\BUSHWACKER\temp ... I don't have .NET installed
on
> my virtual PC, but perhaps there is a way you could narrow down the issue.
> Create a wrapper stored procedure that calls sp_adddistpublisher and check
> it works in QA with no values for the parameters ie set up defaults to
each
> parameter in the wrapper procedure. Call this proicedure from .NET as you
> have done without parameters and check this works. Then add just the
wrapper
> version of @.working_directory to the parameters collection and send it
> through to call the real sp_adddistpublisher. At some stage in the above
> process, it should become clearer what the issue is.
> Rgds,
> Paul Ibison
>
|||Sam,
if you can send through the path as a parameter, then this is good news. I
don't know why the original didn't work, and am interested to find out. I'll
take a look when I get .NET installed.
Rgds,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)
try using a non-administrative share, in the form of
\\computername\repldata.
Rgds,
Paul Ibison, SQL Server MVP,
www.replicationanswers.com/default.asp
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)
I shared a directory \\computername\temp. Then put that as the working
directory and I still receive the working directory error.
"Paul Ibison" <Paul.Ibison@.Pygmalion.Com> wrote in message
news:0f7201c53b5b$75466ea0$a601280a@.phx.gbl...
> Sam,
> try using a non-administrative share, in the form of
> \\computername\repldata.
> Rgds,
> Paul Ibison, SQL Server MVP,
> www.replicationanswers.com/default.asp
> (recommended sql server 2000 replication book:
> http://www.nwsu.com/0974973602p.html)
|||Are you on workstation or professional? Sometimes these versions are
limited by the number of simultaneous share accesses.
Run a net stop server and net start server to see if this fixes the
problem.
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
|||It still didn't work and I can access the directories when I type them in to
the explorer windows. I believe when I tried running the stored procedure in
query analyzer and it was sucessful. But when I run it from VB it does not
work. All other sp calls are working.
Again here is a repost of my last code section. It is very straightforward
but I don't understand why it works in QA and not VB:
Set cmd = New ADODB.Command
cmd.ActiveConnection = cn
cmd.CommandText = "sp_adddistpublisher"
cmd.CommandType = adCmdStoredProc
cmd.Parameters.Append cmd.CreateParameter("@.publisher", adVarChar,
adParamInput, 255)
cmd.Parameters.Append cmd.CreateParameter("@.distribution_db", adVarChar,
adParamInput, 255)
cmd.Parameters.Append cmd.CreateParameter("@.security_mode", adInteger,
adParamInput)
cmd.Parameters.Append cmd.CreateParameter("@.working_directory", adVarChar,
adParamInput, 255)
cmd.Parameters.Append cmd.CreateParameter("@.trusted", adVarChar,
adParamInput, 255)
cmd.Parameters.Append cmd.CreateParameter("@.thirdparty_flag", adInteger,
adParamInput)
cmd("@.publisher") = "BUSHWACKER"
cmd("@.distribution_db") = "distribution"
cmd("@.security_mode") = 1
cmd("@.working_directory") = "\\BUSHWACKER\C\temp"
cmd("@.trusted") = "false"
cmd("@.thirdparty_flag") = 0
cmd.Execute
"Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
news:opsov3eagkrj9kur@.hcottter-lap.ap.org...
> Are you on workstation or professional? Sometimes these versions are
> limited by the number of simultaneous share accesses.
> Run a net stop server and net start server to see if this fixes the
> problem.
> --
> Hilary Cotter
> Looking for a SQL Server replication book?
> http://www.nwsu.com/0974973602.html
> Looking for a FAQ on Indexing Services/SQL FTS
> http://www.indexserverfaq.com
|||Sam,
did you mean to post \\BUSHWACKER\C\temp? Surely it should be
\\BUSHWACKER\temp?
Rgds,
Paul Ibison
"Sam" <sam@.info.com> wrote in message
news:115gblqqpphh46c@.corp.supernews.com...
> It still didn't work and I can access the directories when I type them in
> to
> the explorer windows. I believe when I tried running the stored procedure
> in
> query analyzer and it was sucessful. But when I run it from VB it does
> not
> work. All other sp calls are working.
> Again here is a repost of my last code section. It is very straightforward
> but I don't understand why it works in QA and not VB:
> Set cmd = New ADODB.Command
> cmd.ActiveConnection = cn
> cmd.CommandText = "sp_adddistpublisher"
> cmd.CommandType = adCmdStoredProc
> cmd.Parameters.Append cmd.CreateParameter("@.publisher", adVarChar,
> adParamInput, 255)
> cmd.Parameters.Append cmd.CreateParameter("@.distribution_db", adVarChar,
> adParamInput, 255)
> cmd.Parameters.Append cmd.CreateParameter("@.security_mode", adInteger,
> adParamInput)
> cmd.Parameters.Append cmd.CreateParameter("@.working_directory", adVarChar,
> adParamInput, 255)
> cmd.Parameters.Append cmd.CreateParameter("@.trusted", adVarChar,
> adParamInput, 255)
> cmd.Parameters.Append cmd.CreateParameter("@.thirdparty_flag", adInteger,
> adParamInput)
> cmd("@.publisher") = "BUSHWACKER"
> cmd("@.distribution_db") = "distribution"
> cmd("@.security_mode") = 1
> cmd("@.working_directory") = "\\BUSHWACKER\C\temp"
> cmd("@.trusted") = "false"
> cmd("@.thirdparty_flag") = 0
> cmd.Execute
> "Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
> news:opsov3eagkrj9kur@.hcottter-lap.ap.org...
>
|||yes I used the \\bushwacker\temp in the actual stored procedure. Why does
it work there and not in the source code of vb.
"Paul Ibison" <Paul.Ibison@.Pygmalion.Com> wrote in message
news:#ytrEWUPFHA.3408@.TK2MSFTNGP14.phx.gbl...[vbcol=seagreen]
> Sam,
> did you mean to post \\BUSHWACKER\C\temp? Surely it should be
> \\BUSHWACKER\temp?
> Rgds,
> Paul Ibison
> "Sam" <sam@.info.com> wrote in message
> news:115gblqqpphh46c@.corp.supernews.com...
in[vbcol=seagreen]
procedure[vbcol=seagreen]
straightforward[vbcol=seagreen]
adVarChar,
>
|||Sam,
just to confirm, you previously posted up : cmd("@.working_directory") =
"\\BUSHWACKER\C\temp"
this looks like a copy and paste from a .NET application, and I can't
imagine you retyped it all, so did you later change it and remove the '\C'?
Assuming you have tried \\BUSHWACKER\temp ... I don't have .NET installed on
my virtual PC, but perhaps there is a way you could narrow down the issue.
Create a wrapper stored procedure that calls sp_adddistpublisher and check
it works in QA with no values for the parameters ie set up defaults to each
parameter in the wrapper procedure. Call this proicedure from .NET as you
have done without parameters and check this works. Then add just the wrapper
version of @.working_directory to the parameters collection and send it
through to call the real sp_adddistpublisher. At some stage in the above
process, it should become clearer what the issue is.
Rgds,
Paul Ibison
|||Yes the code I copy and pasted was the code I used after the initial
failure. Sorry for the confusion. I used \\BUSHWACKER\temp
in the code I was testing on before I posted to the newsgroup.
I will try what you have mentioned below. Its a very good idea. I assume
you want to see if its related to permissions or the sp call from vb thats
causing the error. Am I correct?
"Paul Ibison" <Paul.Ibison@.Pygmalion.Com> wrote in message
news:Ozeo#9qPFHA.532@.TK2MSFTNGP09.phx.gbl...
> Sam,
> just to confirm, you previously posted up : cmd("@.working_directory") =
> "\\BUSHWACKER\C\temp"
> this looks like a copy and paste from a .NET application, and I can't
> imagine you retyped it all, so did you later change it and remove the
'\C'?
> Assuming you have tried \\BUSHWACKER\temp ... I don't have .NET installed
on
> my virtual PC, but perhaps there is a way you could narrow down the issue.
> Create a wrapper stored procedure that calls sp_adddistpublisher and check
> it works in QA with no values for the parameters ie set up defaults to
each
> parameter in the wrapper procedure. Call this proicedure from .NET as you
> have done without parameters and check this works. Then add just the
wrapper
> version of @.working_directory to the parameters collection and send it
> through to call the real sp_adddistpublisher. At some stage in the above
> process, it should become clearer what the issue is.
> Rgds,
> Paul Ibison
>
|||Adding the stored procedure to a wrapper worked and when I add it to VB it
works as well.
Why won't it work directly though?
"Paul Ibison" <Paul.Ibison@.Pygmalion.Com> wrote in message
news:Ozeo#9qPFHA.532@.TK2MSFTNGP09.phx.gbl...
> Sam,
> just to confirm, you previously posted up : cmd("@.working_directory") =
> "\\BUSHWACKER\C\temp"
> this looks like a copy and paste from a .NET application, and I can't
> imagine you retyped it all, so did you later change it and remove the
'\C'?
> Assuming you have tried \\BUSHWACKER\temp ... I don't have .NET installed
on
> my virtual PC, but perhaps there is a way you could narrow down the issue.
> Create a wrapper stored procedure that calls sp_adddistpublisher and check
> it works in QA with no values for the parameters ie set up defaults to
each
> parameter in the wrapper procedure. Call this proicedure from .NET as you
> have done without parameters and check this works. Then add just the
wrapper
> version of @.working_directory to the parameters collection and send it
> through to call the real sp_adddistpublisher. At some stage in the above
> process, it should become clearer what the issue is.
> Rgds,
> Paul Ibison
>
|||Sam,
if you can send through the path as a parameter, then this is good news. I
don't know why the original didn't work, and am interested to find out. I'll
take a look when I get .NET installed.
Rgds,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)
Monday, March 26, 2012
Invalid Report Source
I developed a project with a form one main report and three subreports.
I was able to run this report well in this project.
But if i include it in my main project it throws an error "Invalid Report Source" and my viewer is blank but the "Main Report" tab is there present.
I use dataset as the datasource for my crystal report.
If i use the dataset to fill my datagrid it is giving the value.
So with the situation i understand that the dataset is getting filled and the report is also geting the data. The error comes in the line
RptViewer.ReportSource = Rpt_Doc. '(Report Document Object)
One main thing is i have not used any error handler but the code still continue to work properly without being crashed.
If i give 'Try catch' error handler also i the same error is only prompted.
The main project was first developed in vs.net 2000 and the project was upgraded to 2003.
Will this be the reason for the report being giving the errorI got the solution through one of my friend.
she got it from another friend.
So that was a long chani to get the solution
the solution is
The error message appears because the incorrect versions of the Crystal DLL files are referenced.
To correct this behavior reference the correct version of Crystal DLL files.
Adding the Correct References
----------
1. Open the VS .NET project.
2. In the 'Solution Explorer' window, right-click the 'References' folder and choose the 'Add Reference' command. The 'Add Reference' window appears.
3. Verify the References for all Crystal DLLs are version 9.1.5000. If they are not version 9.1.5000, select the 9.1.5000 version DLLs and click the 'Select' button.
4. Click the 'OK' button.
5. Save and run your application.
If running the application you find the DLLs revert to the version observed prior to your updates, complete the following steps:
Reverting DLLs Back to Version 9.1.5000
------------
1. Right-click the project name in the solution explorer and select the 'Properties' command. The 'Properties' window appears.
2. Under the 'Common Properties' folder, select 'References Path'. The 'Reference Path' window appears.
3. Delete all entries in this window and click 'OK'.
4. Repeat steps 2 through 4 of the 'Steps to Add the Correct References Section'.
Upon completing the listed steps, the application runs and reflects the correct References.
she send me this thru my mail i have copied and pasted it here
so it may be helpful to other who visit this forum
Thanks a lot for all those who tried to solve this problem.
dont forget to rate my post
I was able to run this report well in this project.
But if i include it in my main project it throws an error "Invalid Report Source" and my viewer is blank but the "Main Report" tab is there present.
I use dataset as the datasource for my crystal report.
If i use the dataset to fill my datagrid it is giving the value.
So with the situation i understand that the dataset is getting filled and the report is also geting the data. The error comes in the line
RptViewer.ReportSource = Rpt_Doc. '(Report Document Object)
One main thing is i have not used any error handler but the code still continue to work properly without being crashed.
If i give 'Try catch' error handler also i the same error is only prompted.
The main project was first developed in vs.net 2000 and the project was upgraded to 2003.
Will this be the reason for the report being giving the errorI got the solution through one of my friend.
she got it from another friend.
So that was a long chani to get the solution
the solution is
The error message appears because the incorrect versions of the Crystal DLL files are referenced.
To correct this behavior reference the correct version of Crystal DLL files.
Adding the Correct References
----------
1. Open the VS .NET project.
2. In the 'Solution Explorer' window, right-click the 'References' folder and choose the 'Add Reference' command. The 'Add Reference' window appears.
3. Verify the References for all Crystal DLLs are version 9.1.5000. If they are not version 9.1.5000, select the 9.1.5000 version DLLs and click the 'Select' button.
4. Click the 'OK' button.
5. Save and run your application.
If running the application you find the DLLs revert to the version observed prior to your updates, complete the following steps:
Reverting DLLs Back to Version 9.1.5000
------------
1. Right-click the project name in the solution explorer and select the 'Properties' command. The 'Properties' window appears.
2. Under the 'Common Properties' folder, select 'References Path'. The 'Reference Path' window appears.
3. Delete all entries in this window and click 'OK'.
4. Repeat steps 2 through 4 of the 'Steps to Add the Correct References Section'.
Upon completing the listed steps, the application runs and reflects the correct References.
she send me this thru my mail i have copied and pasted it here
so it may be helpful to other who visit this forum
Thanks a lot for all those who tried to solve this problem.
dont forget to rate my post
Friday, March 9, 2012
Invalid character value for cast specification error
I'm using Access 2K via ODBC to replicated SQL Server 2K. In some tables (not all) when I try to add a record either with a form or directly in the datasheet I get this error message and all form controls/table cells display '#Name?'. The record is added
and displays correctly if I close and reopen the form/table. I can add records with no problem in Enterprise Manager.
Any help gratefully received.
Jonathan Attree
Hi, I am getting exactly the same problem although this problem has only occurred since I implemented merge replication. Does anyone have an answer?
Amanda
and displays correctly if I close and reopen the form/table. I can add records with no problem in Enterprise Manager.
Any help gratefully received.
Jonathan Attree
Hi, I am getting exactly the same problem although this problem has only occurred since I implemented merge replication. Does anyone have an answer?
Amanda
Subscribe to:
Posts (Atom)