Connecting Tech Pros Worldwide Forums | Help | Site Map

Crystal Reports Cascading parameters don't get preserved between postbacks

LP
Guest
 
Posts: n/a
#1: Nov 19 '05
I am using (trying to) CR version XI, cascading parameters feature works it
asks user to enter params. But if page is resubmitted. It prompts for params
again. I did set ReuseParameterValuesOnRefresh="True" in a viewer, but it
still doesn't work. Did anyone run into this problem. What's the solution?
Please help.

Thank you



Brian Bischof
Guest
 
Posts: n/a
#2: Nov 19 '05

re: Crystal Reports Cascading parameters don't get preserved between postbacks


You have to cache the report object. Save the report object to the Session()
collection and then restore it upon page refresh (be sure to explicity cast
it as a ReportDocument). ASP.NET reports do all kinds of funny things if you
don't save them between page refreshes.

HTH,

Brian Bischof
www.CrystalReportsBook.com



"LP" <lp@a.com> wrote in message
news:OgS0FtTGFHA.2876@TK2MSFTNGP12.phx.gbl...[color=blue]
> I am using (trying to) CR version XI, cascading parameters feature works[/color]
it[color=blue]
> asks user to enter params. But if page is resubmitted. It prompts for[/color]
params[color=blue]
> again. I did set ReuseParameterValuesOnRefresh="True" in a viewer, but it
> still doesn't work. Did anyone run into this problem. What's the solution?
> Please help.
>
> Thank you
>
>[/color]


LP
Guest
 
Posts: n/a
#3: Nov 19 '05

re: Crystal Reports Cascading parameters don't get preserved between postbacks


Brian, I am not using ReportDocument object, I am setting viewers
ReportSource to a report file directly:

crViewer.ReportSource = Server.MapPath("Reports/" & reportName)

What should I do in this case?



Thanks


"Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
news:eQZxtDUGFHA.548@TK2MSFTNGP14.phx.gbl...[color=blue]
> You have to cache the report object. Save the report object to the[/color]
Session()[color=blue]
> collection and then restore it upon page refresh (be sure to explicity[/color]
cast[color=blue]
> it as a ReportDocument). ASP.NET reports do all kinds of funny things if[/color]
you[color=blue]
> don't save them between page refreshes.
>
> HTH,
>
> Brian Bischof
> www.CrystalReportsBook.com
>
>
>
> "LP" <lp@a.com> wrote in message
> news:OgS0FtTGFHA.2876@TK2MSFTNGP12.phx.gbl...[color=green]
> > I am using (trying to) CR version XI, cascading parameters feature works[/color]
> it[color=green]
> > asks user to enter params. But if page is resubmitted. It prompts for[/color]
> params[color=green]
> > again. I did set ReuseParameterValuesOnRefresh="True" in a viewer, but[/color][/color]
it[color=blue][color=green]
> > still doesn't work. Did anyone run into this problem. What's the[/color][/color]
solution?[color=blue][color=green]
> > Please help.
> >
> > Thank you
> >
> >[/color]
>
>[/color]


LP
Guest
 
Posts: n/a
#4: Nov 19 '05

re: Crystal Reports Cascading parameters don't get preserved between postbacks


Ok, I did change it to ReportDocument , and that worked for me even without
saving it to Session Variable. But now I am having another problem with
exporting. I have another button that export report to excel and sends a
file to a client, so now one parameterized report doesn't work. I tried
saving reportDoc and it ParameterFields to session and retrieving, but
nothing works.
I think CR is a very good product, very sharp looking reports (when you get
them to work), very slick designer especially version XI. But their API and
object hierarchy is terribly confusing and inconsistent with what one would
expect from .NET friendly product, I haven't seen any good documentation on
their APIs.


"LP" <lp@a.com> wrote in message
news:ezCf58UGFHA.1456@TK2MSFTNGP09.phx.gbl...[color=blue]
> Brian, I am not using ReportDocument object, I am setting viewers
> ReportSource to a report file directly:
>
> crViewer.ReportSource = Server.MapPath("Reports/" & reportName)
>
> What should I do in this case?
>
>
>
> Thanks
>
>
> "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
> news:eQZxtDUGFHA.548@TK2MSFTNGP14.phx.gbl...[color=green]
> > You have to cache the report object. Save the report object to the[/color]
> Session()[color=green]
> > collection and then restore it upon page refresh (be sure to explicity[/color]
> cast[color=green]
> > it as a ReportDocument). ASP.NET reports do all kinds of funny things if[/color]
> you[color=green]
> > don't save them between page refreshes.
> >
> > HTH,
> >
> > Brian Bischof
> > www.CrystalReportsBook.com
> >
> >
> >
> > "LP" <lp@a.com> wrote in message
> > news:OgS0FtTGFHA.2876@TK2MSFTNGP12.phx.gbl...[color=darkred]
> > > I am using (trying to) CR version XI, cascading parameters feature[/color][/color][/color]
works[color=blue][color=green]
> > it[color=darkred]
> > > asks user to enter params. But if page is resubmitted. It prompts for[/color]
> > params[color=darkred]
> > > again. I did set ReuseParameterValuesOnRefresh="True" in a viewer, but[/color][/color]
> it[color=green][color=darkred]
> > > still doesn't work. Did anyone run into this problem. What's the[/color][/color]
> solution?[color=green][color=darkred]
> > > Please help.
> > >
> > > Thank you
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


Brian Bischof
Guest
 
Posts: n/a
#5: Nov 19 '05

re: Crystal Reports Cascading parameters don't get preserved between postbacks


I agree about the confusing API. Have you seen my existing book, "Crystal
Reports .NET Programming"? It teaches you how to use the .NET object model
and has many tips and tricks for getting it to work. Anyway, it only touches
on the RAS and RDC programming a bit (I don't know if using that or not).
I'm going to do another book which is hardcore RAS programming because RAS
is extremely complicated to learn and program with.. But that won't be till
after I finish the CR XI book I'm working on now.

Anyway, to answer your question, the mistake most people make is that they
mix up the viewer object model with the report object model. They set some
properties using one object and set other properties using the other object
model. Then they get consfused when some of the properties get dropped. You
can only use ONE object model at a time. The best practice is to use the
ReportDocument object model (unless working with WebServices). Try that and
post the results here.

Brian Bischof
www.CrystalReportsBook.com



"LP" <lp@a.com> wrote in message
news:eS$1FzVGFHA.3612@TK2MSFTNGP09.phx.gbl...[color=blue]
> Ok, I did change it to ReportDocument , and that worked for me even[/color]
without[color=blue]
> saving it to Session Variable. But now I am having another problem with
> exporting. I have another button that export report to excel and sends a
> file to a client, so now one parameterized report doesn't work. I tried
> saving reportDoc and it ParameterFields to session and retrieving, but
> nothing works.
> I think CR is a very good product, very sharp looking reports (when you[/color]
get[color=blue]
> them to work), very slick designer especially version XI. But their API[/color]
and[color=blue]
> object hierarchy is terribly confusing and inconsistent with what one[/color]
would[color=blue]
> expect from .NET friendly product, I haven't seen any good documentation[/color]
on[color=blue]
> their APIs.
>
>
> "LP" <lp@a.com> wrote in message
> news:ezCf58UGFHA.1456@TK2MSFTNGP09.phx.gbl...[color=green]
> > Brian, I am not using ReportDocument object, I am setting viewers
> > ReportSource to a report file directly:
> >
> > crViewer.ReportSource = Server.MapPath("Reports/" & reportName)
> >
> > What should I do in this case?
> >
> >
> >
> > Thanks
> >
> >
> > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
> > news:eQZxtDUGFHA.548@TK2MSFTNGP14.phx.gbl...[color=darkred]
> > > You have to cache the report object. Save the report object to the[/color]
> > Session()[color=darkred]
> > > collection and then restore it upon page refresh (be sure to explicity[/color]
> > cast[color=darkred]
> > > it as a ReportDocument). ASP.NET reports do all kinds of funny things[/color][/color][/color]
if[color=blue][color=green]
> > you[color=darkred]
> > > don't save them between page refreshes.
> > >
> > > HTH,
> > >
> > > Brian Bischof
> > > www.CrystalReportsBook.com
> > >
> > >
> > >
> > > "LP" <lp@a.com> wrote in message
> > > news:OgS0FtTGFHA.2876@TK2MSFTNGP12.phx.gbl...
> > > > I am using (trying to) CR version XI, cascading parameters feature[/color][/color]
> works[color=green][color=darkred]
> > > it
> > > > asks user to enter params. But if page is resubmitted. It prompts[/color][/color][/color]
for[color=blue][color=green][color=darkred]
> > > params
> > > > again. I did set ReuseParameterValuesOnRefresh="True" in a viewer,[/color][/color][/color]
but[color=blue][color=green]
> > it[color=darkred]
> > > > still doesn't work. Did anyone run into this problem. What's the[/color]
> > solution?[color=darkred]
> > > > Please help.
> > > >
> > > > Thank you
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


LP
Guest
 
Posts: n/a
#6: Nov 19 '05

re: Crystal Reports Cascading parameters don't get preserved between postbacks


>The best practice is to use the[color=blue]
> ReportDocument object model (unless working with WebServices). Try that[/color]
and[color=blue]
> post the results here.[/color]

ReportDocument did work for me for postback problems. But I also have a
button that exports report to excel and then sends this file to a client
through HTTP. I could not get that to work with one parameterized report.
Parameters don't seem to get cached with reportdocument. I tried my
different things, like caching actuall ParamFields object, etc. but nothing
seems to work.
I need this button because export in Crystal webviewer opens a popup window
with no toolbars, so users can't save it to a file. If I could find
workaround that, there would not be a need for this custom export button. My
biggest problem with Crystal right now is very simple but yet important
things take so much time effort to do that it becomes questionanle if it's
all worth it. And default behavior of Crystal is just bizarre like opening a
popup with no toolbars when exporting to another format, so file can't be
"save as"



"Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
news:%230b8BKdGFHA.2976@TK2MSFTNGP09.phx.gbl...[color=blue]
> I agree about the confusing API. Have you seen my existing book, "Crystal
> Reports .NET Programming"? It teaches you how to use the .NET object model
> and has many tips and tricks for getting it to work. Anyway, it only[/color]
touches[color=blue]
> on the RAS and RDC programming a bit (I don't know if using that or not).
> I'm going to do another book which is hardcore RAS programming because RAS
> is extremely complicated to learn and program with.. But that won't be[/color]
till[color=blue]
> after I finish the CR XI book I'm working on now.
>
> Anyway, to answer your question, the mistake most people make is that they
> mix up the viewer object model with the report object model. They set some
> properties using one object and set other properties using the other[/color]
object[color=blue]
> model. Then they get consfused when some of the properties get dropped.[/color]
You[color=blue]
> can only use ONE object model at a time. The best practice is to use the
> ReportDocument object model (unless working with WebServices). Try that[/color]
and[color=blue]
> post the results here.
>
> Brian Bischof
> www.CrystalReportsBook.com
>
>
>
> "LP" <lp@a.com> wrote in message
> news:eS$1FzVGFHA.3612@TK2MSFTNGP09.phx.gbl...[color=green]
> > Ok, I did change it to ReportDocument , and that worked for me even[/color]
> without[color=green]
> > saving it to Session Variable. But now I am having another problem with
> > exporting. I have another button that export report to excel and sends a
> > file to a client, so now one parameterized report doesn't work. I tried
> > saving reportDoc and it ParameterFields to session and retrieving, but
> > nothing works.
> > I think CR is a very good product, very sharp looking reports (when you[/color]
> get[color=green]
> > them to work), very slick designer especially version XI. But their API[/color]
> and[color=green]
> > object hierarchy is terribly confusing and inconsistent with what one[/color]
> would[color=green]
> > expect from .NET friendly product, I haven't seen any good documentation[/color]
> on[color=green]
> > their APIs.
> >
> >
> > "LP" <lp@a.com> wrote in message
> > news:ezCf58UGFHA.1456@TK2MSFTNGP09.phx.gbl...[color=darkred]
> > > Brian, I am not using ReportDocument object, I am setting viewers
> > > ReportSource to a report file directly:
> > >
> > > crViewer.ReportSource = Server.MapPath("Reports/" & reportName)
> > >
> > > What should I do in this case?
> > >
> > >
> > >
> > > Thanks
> > >
> > >
> > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
> > > news:eQZxtDUGFHA.548@TK2MSFTNGP14.phx.gbl...
> > > > You have to cache the report object. Save the report object to the
> > > Session()
> > > > collection and then restore it upon page refresh (be sure to[/color][/color][/color]
explicity[color=blue][color=green][color=darkred]
> > > cast
> > > > it as a ReportDocument). ASP.NET reports do all kinds of funny[/color][/color][/color]
things[color=blue]
> if[color=green][color=darkred]
> > > you
> > > > don't save them between page refreshes.
> > > >
> > > > HTH,
> > > >
> > > > Brian Bischof
> > > > www.CrystalReportsBook.com
> > > >
> > > >
> > > >
> > > > "LP" <lp@a.com> wrote in message
> > > > news:OgS0FtTGFHA.2876@TK2MSFTNGP12.phx.gbl...
> > > > > I am using (trying to) CR version XI, cascading parameters feature[/color]
> > works[color=darkred]
> > > > it
> > > > > asks user to enter params. But if page is resubmitted. It prompts[/color][/color]
> for[color=green][color=darkred]
> > > > params
> > > > > again. I did set ReuseParameterValuesOnRefresh="True" in a viewer,[/color][/color]
> but[color=green][color=darkred]
> > > it
> > > > > still doesn't work. Did anyone run into this problem. What's the
> > > solution?
> > > > > Please help.
> > > > >
> > > > > Thank you
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


Brian Bischof
Guest
 
Posts: n/a
#7: Nov 19 '05

re: Crystal Reports Cascading parameters don't get preserved between postbacks


Those are good points. Let me look into the export problem of not saving to
disk and see if I can get you an answer.

Brian


"LP" <lp@a.com> wrote in message
news:%23VXeKbeGFHA.4088@TK2MSFTNGP09.phx.gbl...[color=blue][color=green]
> >The best practice is to use the
> > ReportDocument object model (unless working with WebServices). Try that[/color]
> and[color=green]
> > post the results here.[/color]
>
> ReportDocument did work for me for postback problems. But I also have a
> button that exports report to excel and then sends this file to a client
> through HTTP. I could not get that to work with one parameterized report.
> Parameters don't seem to get cached with reportdocument. I tried my
> different things, like caching actuall ParamFields object, etc. but[/color]
nothing[color=blue]
> seems to work.
> I need this button because export in Crystal webviewer opens a popup[/color]
window[color=blue]
> with no toolbars, so users can't save it to a file. If I could find
> workaround that, there would not be a need for this custom export button.[/color]
My[color=blue]
> biggest problem with Crystal right now is very simple but yet important
> things take so much time effort to do that it becomes questionanle if it's
> all worth it. And default behavior of Crystal is just bizarre like opening[/color]
a[color=blue]
> popup with no toolbars when exporting to another format, so file can't be
> "save as"
>
>
>
> "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
> news:%230b8BKdGFHA.2976@TK2MSFTNGP09.phx.gbl...[color=green]
> > I agree about the confusing API. Have you seen my existing book,[/color][/color]
"Crystal[color=blue][color=green]
> > Reports .NET Programming"? It teaches you how to use the .NET object[/color][/color]
model[color=blue][color=green]
> > and has many tips and tricks for getting it to work. Anyway, it only[/color]
> touches[color=green]
> > on the RAS and RDC programming a bit (I don't know if using that or[/color][/color]
not).[color=blue][color=green]
> > I'm going to do another book which is hardcore RAS programming because[/color][/color]
RAS[color=blue][color=green]
> > is extremely complicated to learn and program with.. But that won't be[/color]
> till[color=green]
> > after I finish the CR XI book I'm working on now.
> >
> > Anyway, to answer your question, the mistake most people make is that[/color][/color]
they[color=blue][color=green]
> > mix up the viewer object model with the report object model. They set[/color][/color]
some[color=blue][color=green]
> > properties using one object and set other properties using the other[/color]
> object[color=green]
> > model. Then they get consfused when some of the properties get dropped.[/color]
> You[color=green]
> > can only use ONE object model at a time. The best practice is to use the
> > ReportDocument object model (unless working with WebServices). Try that[/color]
> and[color=green]
> > post the results here.
> >
> > Brian Bischof
> > www.CrystalReportsBook.com
> >
> >
> >
> > "LP" <lp@a.com> wrote in message
> > news:eS$1FzVGFHA.3612@TK2MSFTNGP09.phx.gbl...[color=darkred]
> > > Ok, I did change it to ReportDocument , and that worked for me even[/color]
> > without[color=darkred]
> > > saving it to Session Variable. But now I am having another problem[/color][/color][/color]
with[color=blue][color=green][color=darkred]
> > > exporting. I have another button that export report to excel and sends[/color][/color][/color]
a[color=blue][color=green][color=darkred]
> > > file to a client, so now one parameterized report doesn't work. I[/color][/color][/color]
tried[color=blue][color=green][color=darkred]
> > > saving reportDoc and it ParameterFields to session and retrieving, but
> > > nothing works.
> > > I think CR is a very good product, very sharp looking reports (when[/color][/color][/color]
you[color=blue][color=green]
> > get[color=darkred]
> > > them to work), very slick designer especially version XI. But their[/color][/color][/color]
API[color=blue][color=green]
> > and[color=darkred]
> > > object hierarchy is terribly confusing and inconsistent with what one[/color]
> > would[color=darkred]
> > > expect from .NET friendly product, I haven't seen any good[/color][/color][/color]
documentation[color=blue][color=green]
> > on[color=darkred]
> > > their APIs.
> > >
> > >
> > > "LP" <lp@a.com> wrote in message
> > > news:ezCf58UGFHA.1456@TK2MSFTNGP09.phx.gbl...
> > > > Brian, I am not using ReportDocument object, I am setting viewers
> > > > ReportSource to a report file directly:
> > > >
> > > > crViewer.ReportSource = Server.MapPath("Reports/" & reportName)
> > > >
> > > > What should I do in this case?
> > > >
> > > >
> > > >
> > > > Thanks
> > > >
> > > >
> > > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
> > > > news:eQZxtDUGFHA.548@TK2MSFTNGP14.phx.gbl...
> > > > > You have to cache the report object. Save the report object to the[/color][/color][/color]
[color=blue][color=green][color=darkred]
> > > > Session()
> > > > > collection and then restore it upon page refresh (be sure to[/color][/color]
> explicity[color=green][color=darkred]
> > > > cast
> > > > > it as a ReportDocument). ASP.NET reports do all kinds of funny[/color][/color]
> things[color=green]
> > if[color=darkred]
> > > > you
> > > > > don't save them between page refreshes.
> > > > >
> > > > > HTH,
> > > > >
> > > > > Brian Bischof
> > > > > www.CrystalReportsBook.com
> > > > >
> > > > >
> > > > >
> > > > > "LP" <lp@a.com> wrote in message
> > > > > news:OgS0FtTGFHA.2876@TK2MSFTNGP12.phx.gbl...
> > > > > > I am using (trying to) CR version XI, cascading parameters[/color][/color][/color]
feature[color=blue][color=green][color=darkred]
> > > works
> > > > > it
> > > > > > asks user to enter params. But if page is resubmitted. It[/color][/color][/color]
prompts[color=blue][color=green]
> > for[color=darkred]
> > > > > params
> > > > > > again. I did set ReuseParameterValuesOnRefresh="True" in a[/color][/color][/color]
viewer,[color=blue][color=green]
> > but[color=darkred]
> > > > it
> > > > > > still doesn't work. Did anyone run into this problem. What's the
> > > > solution?
> > > > > > Please help.
> > > > > >
> > > > > > Thank you
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


Brian Bischof
Guest
 
Posts: n/a
#8: Nov 19 '05

re: Crystal Reports Cascading parameters don't get preserved between postbacks


Hmmm. I'm looking over all your posts. The first post you had last week said
that you couldn't get the Save As dialog box to open. Instead, it always
spawned a new window. Now it seems that when you are in the new window it
won't allow saving the data. I assume this is a direct result of not being
able to solve the first problem. So here are my comments.

First is that if the export button doesn't open the Save/Open dialog box,
then I think it's a browser issue. For example, at the bottom of the dialog
box is a checkbox telling whether it should prompt you with this or not. I
played around with it for Excel and Word but this had no effect. I did find
out that I can change this with Adobe inside the Adobe Internet preferences.
After fixing that I got the Open/Save box for PDFs again. I looked in
preferences for Excel/Word and couldn't find such an option. Thus, the PDF
option makes me think that the browser is controlling this and not CR XI.
Overall, I have the Open/Save dialog popping up for all file types in my
brower and you should be able to get them too.

Re the Excel and Word browsers not letting you save data, this is happening
with my computer as well. However, again I have to question if this is a
browser issue or a CR XI issue since XI is just sending the XLS file to the
browser. I'll continue to play with it b/c I don't know the answer to this
one yet. But I think your best bet is to look at the first issue and get the
Open/Save dialog box to pop up by tweaking the IE settings.

HTH,

Brian Bischof
www.CrystalReportsBook.com



"Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
news:%236jPVYfGFHA.3472@TK2MSFTNGP09.phx.gbl...[color=blue]
> Those are good points. Let me look into the export problem of not saving[/color]
to[color=blue]
> disk and see if I can get you an answer.
>
> Brian
>
>
> "LP" <lp@a.com> wrote in message
> news:%23VXeKbeGFHA.4088@TK2MSFTNGP09.phx.gbl...[color=green][color=darkred]
> > >The best practice is to use the
> > > ReportDocument object model (unless working with WebServices). Try[/color][/color][/color]
that[color=blue][color=green]
> > and[color=darkred]
> > > post the results here.[/color]
> >
> > ReportDocument did work for me for postback problems. But I also have a
> > button that exports report to excel and then sends this file to a client
> > through HTTP. I could not get that to work with one parameterized[/color][/color]
report.[color=blue][color=green]
> > Parameters don't seem to get cached with reportdocument. I tried my
> > different things, like caching actuall ParamFields object, etc. but[/color]
> nothing[color=green]
> > seems to work.
> > I need this button because export in Crystal webviewer opens a popup[/color]
> window[color=green]
> > with no toolbars, so users can't save it to a file. If I could find
> > workaround that, there would not be a need for this custom export[/color][/color]
button.[color=blue]
> My[color=green]
> > biggest problem with Crystal right now is very simple but yet important
> > things take so much time effort to do that it becomes questionanle if[/color][/color]
it's[color=blue][color=green]
> > all worth it. And default behavior of Crystal is just bizarre like[/color][/color]
opening[color=blue]
> a[color=green]
> > popup with no toolbars when exporting to another format, so file can't[/color][/color]
be[color=blue][color=green]
> > "save as"
> >
> >
> >
> > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
> > news:%230b8BKdGFHA.2976@TK2MSFTNGP09.phx.gbl...[color=darkred]
> > > I agree about the confusing API. Have you seen my existing book,[/color][/color]
> "Crystal[color=green][color=darkred]
> > > Reports .NET Programming"? It teaches you how to use the .NET object[/color][/color]
> model[color=green][color=darkred]
> > > and has many tips and tricks for getting it to work. Anyway, it only[/color]
> > touches[color=darkred]
> > > on the RAS and RDC programming a bit (I don't know if using that or[/color][/color]
> not).[color=green][color=darkred]
> > > I'm going to do another book which is hardcore RAS programming because[/color][/color]
> RAS[color=green][color=darkred]
> > > is extremely complicated to learn and program with.. But that won't be[/color]
> > till[color=darkred]
> > > after I finish the CR XI book I'm working on now.
> > >
> > > Anyway, to answer your question, the mistake most people make is that[/color][/color]
> they[color=green][color=darkred]
> > > mix up the viewer object model with the report object model. They set[/color][/color]
> some[color=green][color=darkred]
> > > properties using one object and set other properties using the other[/color]
> > object[color=darkred]
> > > model. Then they get consfused when some of the properties get[/color][/color][/color]
dropped.[color=blue][color=green]
> > You[color=darkred]
> > > can only use ONE object model at a time. The best practice is to use[/color][/color][/color]
the[color=blue][color=green][color=darkred]
> > > ReportDocument object model (unless working with WebServices). Try[/color][/color][/color]
that[color=blue][color=green]
> > and[color=darkred]
> > > post the results here.
> > >
> > > Brian Bischof
> > > www.CrystalReportsBook.com
> > >
> > >
> > >
> > > "LP" <lp@a.com> wrote in message
> > > news:eS$1FzVGFHA.3612@TK2MSFTNGP09.phx.gbl...
> > > > Ok, I did change it to ReportDocument , and that worked for me even
> > > without
> > > > saving it to Session Variable. But now I am having another problem[/color][/color]
> with[color=green][color=darkred]
> > > > exporting. I have another button that export report to excel and[/color][/color][/color]
sends[color=blue]
> a[color=green][color=darkred]
> > > > file to a client, so now one parameterized report doesn't work. I[/color][/color]
> tried[color=green][color=darkred]
> > > > saving reportDoc and it ParameterFields to session and retrieving,[/color][/color][/color]
but[color=blue][color=green][color=darkred]
> > > > nothing works.
> > > > I think CR is a very good product, very sharp looking reports (when[/color][/color]
> you[color=green][color=darkred]
> > > get
> > > > them to work), very slick designer especially version XI. But their[/color][/color]
> API[color=green][color=darkred]
> > > and
> > > > object hierarchy is terribly confusing and inconsistent with what[/color][/color][/color]
one[color=blue][color=green][color=darkred]
> > > would
> > > > expect from .NET friendly product, I haven't seen any good[/color][/color]
> documentation[color=green][color=darkred]
> > > on
> > > > their APIs.
> > > >
> > > >
> > > > "LP" <lp@a.com> wrote in message
> > > > news:ezCf58UGFHA.1456@TK2MSFTNGP09.phx.gbl...
> > > > > Brian, I am not using ReportDocument object, I am setting viewers
> > > > > ReportSource to a report file directly:
> > > > >
> > > > > crViewer.ReportSource = Server.MapPath("Reports/" & reportName)
> > > > >
> > > > > What should I do in this case?
> > > > >
> > > > >
> > > > >
> > > > > Thanks
> > > > >
> > > > >
> > > > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
> > > > > news:eQZxtDUGFHA.548@TK2MSFTNGP14.phx.gbl...
> > > > > > You have to cache the report object. Save the report object to[/color][/color][/color]
the[color=blue]
>[color=green][color=darkred]
> > > > > Session()
> > > > > > collection and then restore it upon page refresh (be sure to[/color]
> > explicity[color=darkred]
> > > > > cast
> > > > > > it as a ReportDocument). ASP.NET reports do all kinds of funny[/color]
> > things[color=darkred]
> > > if
> > > > > you
> > > > > > don't save them between page refreshes.
> > > > > >
> > > > > > HTH,
> > > > > >
> > > > > > Brian Bischof
> > > > > > www.CrystalReportsBook.com
> > > > > >
> > > > > >
> > > > > >
> > > > > > "LP" <lp@a.com> wrote in message
> > > > > > news:OgS0FtTGFHA.2876@TK2MSFTNGP12.phx.gbl...
> > > > > > > I am using (trying to) CR version XI, cascading parameters[/color][/color]
> feature[color=green][color=darkred]
> > > > works
> > > > > > it
> > > > > > > asks user to enter params. But if page is resubmitted. It[/color][/color]
> prompts[color=green][color=darkred]
> > > for
> > > > > > params
> > > > > > > again. I did set ReuseParameterValuesOnRefresh="True" in a[/color][/color]
> viewer,[color=green][color=darkred]
> > > but
> > > > > it
> > > > > > > still doesn't work. Did anyone run into this problem. What's[/color][/color][/color]
the[color=blue][color=green][color=darkred]
> > > > > solution?
> > > > > > > Please help.
> > > > > > >
> > > > > > > Thank you
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


LP
Guest
 
Posts: n/a
#9: Nov 19 '05

re: Crystal Reports Cascading parameters don't get preserved between postbacks


Brian, Thanks for looking into this for me.
I think you understand my problem. But just to be clear:
When I click export button of a webviewer, it does open a popup window and
loads excel, word, etc. into the window. But there's no obvious way to save
it to a local drive as a file (other than copy and paste) And, yes, you are
right PDF is the only format with a toolbar that has "save as" icon. But I
think it's part of PDF object embedded within a browser. I also looked in
browser settings to make it open "save as" dialog box, but could not find
anything.
But I begin to doubt that it is a browser issue like you suggesting. I think
this behavior is controlled by HTTP header tags. I know that there's a
header tag content-type (or something like that) where you can specify
ms-excel, ms-word, etc. And there's also "attachment; filename=" tag where
you can give file name and browser then will prompt you to save or open that
file. So, I do think it's the way CR not providing the right HTTP header
tags for the popup is a root of the problem. So, I am thinking of
intercepting CR rendered HTML and modifying it, but I haven't had any time
to do anything serious like that, after all I am just building a demo app.
Let me know if you find anything else, or if I am on the right track.

Thank you again for your input.


"Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
news:%23rZC84fGFHA.2524@TK2MSFTNGP15.phx.gbl...[color=blue]
> Hmmm. I'm looking over all your posts. The first post you had last week[/color]
said[color=blue]
> that you couldn't get the Save As dialog box to open. Instead, it always
> spawned a new window. Now it seems that when you are in the new window it
> won't allow saving the data. I assume this is a direct result of not being
> able to solve the first problem. So here are my comments.
>
> First is that if the export button doesn't open the Save/Open dialog box,
> then I think it's a browser issue. For example, at the bottom of the[/color]
dialog[color=blue]
> box is a checkbox telling whether it should prompt you with this or not. I
> played around with it for Excel and Word but this had no effect. I did[/color]
find[color=blue]
> out that I can change this with Adobe inside the Adobe Internet[/color]
preferences.[color=blue]
> After fixing that I got the Open/Save box for PDFs again. I looked in
> preferences for Excel/Word and couldn't find such an option. Thus, the PDF
> option makes me think that the browser is controlling this and not CR XI.
> Overall, I have the Open/Save dialog popping up for all file types in my
> brower and you should be able to get them too.
>
> Re the Excel and Word browsers not letting you save data, this is[/color]
happening[color=blue]
> with my computer as well. However, again I have to question if this is a
> browser issue or a CR XI issue since XI is just sending the XLS file to[/color]
the[color=blue]
> browser. I'll continue to play with it b/c I don't know the answer to this
> one yet. But I think your best bet is to look at the first issue and get[/color]
the[color=blue]
> Open/Save dialog box to pop up by tweaking the IE settings.
>
> HTH,
>
> Brian Bischof
> www.CrystalReportsBook.com
>
>
>
> "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
> news:%236jPVYfGFHA.3472@TK2MSFTNGP09.phx.gbl...[color=green]
> > Those are good points. Let me look into the export problem of not saving[/color]
> to[color=green]
> > disk and see if I can get you an answer.
> >
> > Brian
> >
> >
> > "LP" <lp@a.com> wrote in message
> > news:%23VXeKbeGFHA.4088@TK2MSFTNGP09.phx.gbl...[color=darkred]
> > > >The best practice is to use the
> > > > ReportDocument object model (unless working with WebServices). Try[/color][/color]
> that[color=green][color=darkred]
> > > and
> > > > post the results here.
> > >
> > > ReportDocument did work for me for postback problems. But I also have[/color][/color][/color]
a[color=blue][color=green][color=darkred]
> > > button that exports report to excel and then sends this file to a[/color][/color][/color]
client[color=blue][color=green][color=darkred]
> > > through HTTP. I could not get that to work with one parameterized[/color][/color]
> report.[color=green][color=darkred]
> > > Parameters don't seem to get cached with reportdocument. I tried my
> > > different things, like caching actuall ParamFields object, etc. but[/color]
> > nothing[color=darkred]
> > > seems to work.
> > > I need this button because export in Crystal webviewer opens a popup[/color]
> > window[color=darkred]
> > > with no toolbars, so users can't save it to a file. If I could find
> > > workaround that, there would not be a need for this custom export[/color][/color]
> button.[color=green]
> > My[color=darkred]
> > > biggest problem with Crystal right now is very simple but yet[/color][/color][/color]
important[color=blue][color=green][color=darkred]
> > > things take so much time effort to do that it becomes questionanle if[/color][/color]
> it's[color=green][color=darkred]
> > > all worth it. And default behavior of Crystal is just bizarre like[/color][/color]
> opening[color=green]
> > a[color=darkred]
> > > popup with no toolbars when exporting to another format, so file can't[/color][/color]
> be[color=green][color=darkred]
> > > "save as"
> > >
> > >
> > >
> > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
> > > news:%230b8BKdGFHA.2976@TK2MSFTNGP09.phx.gbl...
> > > > I agree about the confusing API. Have you seen my existing book,[/color]
> > "Crystal[color=darkred]
> > > > Reports .NET Programming"? It teaches you how to use the .NET object[/color]
> > model[color=darkred]
> > > > and has many tips and tricks for getting it to work. Anyway, it only
> > > touches
> > > > on the RAS and RDC programming a bit (I don't know if using that or[/color]
> > not).[color=darkred]
> > > > I'm going to do another book which is hardcore RAS programming[/color][/color][/color]
because[color=blue][color=green]
> > RAS[color=darkred]
> > > > is extremely complicated to learn and program with.. But that won't[/color][/color][/color]
be[color=blue][color=green][color=darkred]
> > > till
> > > > after I finish the CR XI book I'm working on now.
> > > >
> > > > Anyway, to answer your question, the mistake most people make is[/color][/color][/color]
that[color=blue][color=green]
> > they[color=darkred]
> > > > mix up the viewer object model with the report object model. They[/color][/color][/color]
set[color=blue][color=green]
> > some[color=darkred]
> > > > properties using one object and set other properties using the other
> > > object
> > > > model. Then they get consfused when some of the properties get[/color][/color]
> dropped.[color=green][color=darkred]
> > > You
> > > > can only use ONE object model at a time. The best practice is to use[/color][/color]
> the[color=green][color=darkred]
> > > > ReportDocument object model (unless working with WebServices). Try[/color][/color]
> that[color=green][color=darkred]
> > > and
> > > > post the results here.
> > > >
> > > > Brian Bischof
> > > > www.CrystalReportsBook.com
> > > >
> > > >
> > > >
> > > > "LP" <lp@a.com> wrote in message
> > > > news:eS$1FzVGFHA.3612@TK2MSFTNGP09.phx.gbl...
> > > > > Ok, I did change it to ReportDocument , and that worked for me[/color][/color][/color]
even[color=blue][color=green][color=darkred]
> > > > without
> > > > > saving it to Session Variable. But now I am having another problem[/color]
> > with[color=darkred]
> > > > > exporting. I have another button that export report to excel and[/color][/color]
> sends[color=green]
> > a[color=darkred]
> > > > > file to a client, so now one parameterized report doesn't work. I[/color]
> > tried[color=darkred]
> > > > > saving reportDoc and it ParameterFields to session and retrieving,[/color][/color]
> but[color=green][color=darkred]
> > > > > nothing works.
> > > > > I think CR is a very good product, very sharp looking reports[/color][/color][/color]
(when[color=blue][color=green]
> > you[color=darkred]
> > > > get
> > > > > them to work), very slick designer especially version XI. But[/color][/color][/color]
their[color=blue][color=green]
> > API[color=darkred]
> > > > and
> > > > > object hierarchy is terribly confusing and inconsistent with what[/color][/color]
> one[color=green][color=darkred]
> > > > would
> > > > > expect from .NET friendly product, I haven't seen any good[/color]
> > documentation[color=darkred]
> > > > on
> > > > > their APIs.
> > > > >
> > > > >
> > > > > "LP" <lp@a.com> wrote in message
> > > > > news:ezCf58UGFHA.1456@TK2MSFTNGP09.phx.gbl...
> > > > > > Brian, I am not using ReportDocument object, I am setting[/color][/color][/color]
viewers[color=blue][color=green][color=darkred]
> > > > > > ReportSource to a report file directly:
> > > > > >
> > > > > > crViewer.ReportSource = Server.MapPath("Reports/" & reportName)
> > > > > >
> > > > > > What should I do in this case?
> > > > > >
> > > > > >
> > > > > >
> > > > > > Thanks
> > > > > >
> > > > > >
> > > > > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in[/color][/color][/color]
message[color=blue][color=green][color=darkred]
> > > > > > news:eQZxtDUGFHA.548@TK2MSFTNGP14.phx.gbl...
> > > > > > > You have to cache the report object. Save the report object to[/color][/color]
> the[color=green]
> >[color=darkred]
> > > > > > Session()
> > > > > > > collection and then restore it upon page refresh (be sure to
> > > explicity
> > > > > > cast
> > > > > > > it as a ReportDocument). ASP.NET reports do all kinds of funny
> > > things
> > > > if
> > > > > > you
> > > > > > > don't save them between page refreshes.
> > > > > > >
> > > > > > > HTH,
> > > > > > >
> > > > > > > Brian Bischof
> > > > > > > www.CrystalReportsBook.com
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > "LP" <lp@a.com> wrote in message
> > > > > > > news:OgS0FtTGFHA.2876@TK2MSFTNGP12.phx.gbl...
> > > > > > > > I am using (trying to) CR version XI, cascading parameters[/color]
> > feature[color=darkred]
> > > > > works
> > > > > > > it
> > > > > > > > asks user to enter params. But if page is resubmitted. It[/color]
> > prompts[color=darkred]
> > > > for
> > > > > > > params
> > > > > > > > again. I did set ReuseParameterValuesOnRefresh="True" in a[/color]
> > viewer,[color=darkred]
> > > > but
> > > > > > it
> > > > > > > > still doesn't work. Did anyone run into this problem. What's[/color][/color]
> the[color=green][color=darkred]
> > > > > > solution?
> > > > > > > > Please help.
> > > > > > > >
> > > > > > > > Thank you
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]



Brian Bischof
Guest
 
Posts: n/a
#10: Nov 19 '05

re: Crystal Reports Cascading parameters don't get preserved between postbacks


Are you saying that you don't get the Open/Save dialog box or you do get it?
It seems that you don't get it at all. I get it on my computer and I think
this is a browser issue. As I said earlier, I was able to turn
enable/disable it using a PDF option. The second issue of the toolbar not
having the Save buttons could be a header issue. I'm not knowledgeable about
HTML headers but it does make sense that the header tags can control this. I
will have to research that tomorrow.

Brian Bischof
www.CrystalReportsBook.com



"LP" <lp@a.com> wrote in message
news:%23GkSYeiGFHA.2620@tk2msftngp13.phx.gbl...[color=blue]
> Brian, Thanks for looking into this for me.
> I think you understand my problem. But just to be clear:
> When I click export button of a webviewer, it does open a popup window and
> loads excel, word, etc. into the window. But there's no obvious way to[/color]
save[color=blue]
> it to a local drive as a file (other than copy and paste) And, yes, you[/color]
are[color=blue]
> right PDF is the only format with a toolbar that has "save as" icon. But I
> think it's part of PDF object embedded within a browser. I also looked in
> browser settings to make it open "save as" dialog box, but could not find
> anything.
> But I begin to doubt that it is a browser issue like you suggesting. I[/color]
think[color=blue]
> this behavior is controlled by HTTP header tags. I know that there's a
> header tag content-type (or something like that) where you can specify
> ms-excel, ms-word, etc. And there's also "attachment; filename=" tag where
> you can give file name and browser then will prompt you to save or open[/color]
that[color=blue]
> file. So, I do think it's the way CR not providing the right HTTP header
> tags for the popup is a root of the problem. So, I am thinking of
> intercepting CR rendered HTML and modifying it, but I haven't had any time
> to do anything serious like that, after all I am just building a demo app.
> Let me know if you find anything else, or if I am on the right track.
>
> Thank you again for your input.
>
>
> "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
> news:%23rZC84fGFHA.2524@TK2MSFTNGP15.phx.gbl...[color=green]
> > Hmmm. I'm looking over all your posts. The first post you had last week[/color]
> said[color=green]
> > that you couldn't get the Save As dialog box to open. Instead, it always
> > spawned a new window. Now it seems that when you are in the new window[/color][/color]
it[color=blue][color=green]
> > won't allow saving the data. I assume this is a direct result of not[/color][/color]
being[color=blue][color=green]
> > able to solve the first problem. So here are my comments.
> >
> > First is that if the export button doesn't open the Save/Open dialog[/color][/color]
box,[color=blue][color=green]
> > then I think it's a browser issue. For example, at the bottom of the[/color]
> dialog[color=green]
> > box is a checkbox telling whether it should prompt you with this or not.[/color][/color]
I[color=blue][color=green]
> > played around with it for Excel and Word but this had no effect. I did[/color]
> find[color=green]
> > out that I can change this with Adobe inside the Adobe Internet[/color]
> preferences.[color=green]
> > After fixing that I got the Open/Save box for PDFs again. I looked in
> > preferences for Excel/Word and couldn't find such an option. Thus, the[/color][/color]
PDF[color=blue][color=green]
> > option makes me think that the browser is controlling this and not CR[/color][/color]
XI.[color=blue][color=green]
> > Overall, I have the Open/Save dialog popping up for all file types in my
> > brower and you should be able to get them too.
> >
> > Re the Excel and Word browsers not letting you save data, this is[/color]
> happening[color=green]
> > with my computer as well. However, again I have to question if this is a
> > browser issue or a CR XI issue since XI is just sending the XLS file to[/color]
> the[color=green]
> > browser. I'll continue to play with it b/c I don't know the answer to[/color][/color]
this[color=blue][color=green]
> > one yet. But I think your best bet is to look at the first issue and get[/color]
> the[color=green]
> > Open/Save dialog box to pop up by tweaking the IE settings.
> >
> > HTH,
> >
> > Brian Bischof
> > www.CrystalReportsBook.com
> >
> >
> >
> > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
> > news:%236jPVYfGFHA.3472@TK2MSFTNGP09.phx.gbl...[color=darkred]
> > > Those are good points. Let me look into the export problem of not[/color][/color][/color]
saving[color=blue][color=green]
> > to[color=darkred]
> > > disk and see if I can get you an answer.
> > >
> > > Brian
> > >
> > >
> > > "LP" <lp@a.com> wrote in message
> > > news:%23VXeKbeGFHA.4088@TK2MSFTNGP09.phx.gbl...
> > > > >The best practice is to use the
> > > > > ReportDocument object model (unless working with WebServices). Try[/color]
> > that[color=darkred]
> > > > and
> > > > > post the results here.
> > > >
> > > > ReportDocument did work for me for postback problems. But I also[/color][/color][/color]
have[color=blue]
> a[color=green][color=darkred]
> > > > button that exports report to excel and then sends this file to a[/color][/color]
> client[color=green][color=darkred]
> > > > through HTTP. I could not get that to work with one parameterized[/color]
> > report.[color=darkred]
> > > > Parameters don't seem to get cached with reportdocument. I tried my
> > > > different things, like caching actuall ParamFields object, etc. but
> > > nothing
> > > > seems to work.
> > > > I need this button because export in Crystal webviewer opens a popup
> > > window
> > > > with no toolbars, so users can't save it to a file. If I could find
> > > > workaround that, there would not be a need for this custom export[/color]
> > button.[color=darkred]
> > > My
> > > > biggest problem with Crystal right now is very simple but yet[/color][/color]
> important[color=green][color=darkred]
> > > > things take so much time effort to do that it becomes questionanle[/color][/color][/color]
if[color=blue][color=green]
> > it's[color=darkred]
> > > > all worth it. And default behavior of Crystal is just bizarre like[/color]
> > opening[color=darkred]
> > > a
> > > > popup with no toolbars when exporting to another format, so file[/color][/color][/color]
can't[color=blue][color=green]
> > be[color=darkred]
> > > > "save as"
> > > >
> > > >
> > > >
> > > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
> > > > news:%230b8BKdGFHA.2976@TK2MSFTNGP09.phx.gbl...
> > > > > I agree about the confusing API. Have you seen my existing book,
> > > "Crystal
> > > > > Reports .NET Programming"? It teaches you how to use the .NET[/color][/color][/color]
object[color=blue][color=green][color=darkred]
> > > model
> > > > > and has many tips and tricks for getting it to work. Anyway, it[/color][/color][/color]
only[color=blue][color=green][color=darkred]
> > > > touches
> > > > > on the RAS and RDC programming a bit (I don't know if using that[/color][/color][/color]
or[color=blue][color=green][color=darkred]
> > > not).
> > > > > I'm going to do another book which is hardcore RAS programming[/color][/color]
> because[color=green][color=darkred]
> > > RAS
> > > > > is extremely complicated to learn and program with.. But that[/color][/color][/color]
won't[color=blue]
> be[color=green][color=darkred]
> > > > till
> > > > > after I finish the CR XI book I'm working on now.
> > > > >
> > > > > Anyway, to answer your question, the mistake most people make is[/color][/color]
> that[color=green][color=darkred]
> > > they
> > > > > mix up the viewer object model with the report object model. They[/color][/color]
> set[color=green][color=darkred]
> > > some
> > > > > properties using one object and set other properties using the[/color][/color][/color]
other[color=blue][color=green][color=darkred]
> > > > object
> > > > > model. Then they get consfused when some of the properties get[/color]
> > dropped.[color=darkred]
> > > > You
> > > > > can only use ONE object model at a time. The best practice is to[/color][/color][/color]
use[color=blue][color=green]
> > the[color=darkred]
> > > > > ReportDocument object model (unless working with WebServices). Try[/color]
> > that[color=darkred]
> > > > and
> > > > > post the results here.
> > > > >
> > > > > Brian Bischof
> > > > > www.CrystalReportsBook.com
> > > > >
> > > > >
> > > > >
> > > > > "LP" <lp@a.com> wrote in message
> > > > > news:eS$1FzVGFHA.3612@TK2MSFTNGP09.phx.gbl...
> > > > > > Ok, I did change it to ReportDocument , and that worked for me[/color][/color]
> even[color=green][color=darkred]
> > > > > without
> > > > > > saving it to Session Variable. But now I am having another[/color][/color][/color]
problem[color=blue][color=green][color=darkred]
> > > with
> > > > > > exporting. I have another button that export report to excel and[/color]
> > sends[color=darkred]
> > > a
> > > > > > file to a client, so now one parameterized report doesn't work.[/color][/color][/color]
I[color=blue][color=green][color=darkred]
> > > tried
> > > > > > saving reportDoc and it ParameterFields to session and[/color][/color][/color]
retrieving,[color=blue][color=green]
> > but[color=darkred]
> > > > > > nothing works.
> > > > > > I think CR is a very good product, very sharp looking reports[/color][/color]
> (when[color=green][color=darkred]
> > > you
> > > > > get
> > > > > > them to work), very slick designer especially version XI. But[/color][/color]
> their[color=green][color=darkred]
> > > API
> > > > > and
> > > > > > object hierarchy is terribly confusing and inconsistent with[/color][/color][/color]
what[color=blue][color=green]
> > one[color=darkred]
> > > > > would
> > > > > > expect from .NET friendly product, I haven't seen any good
> > > documentation
> > > > > on
> > > > > > their APIs.
> > > > > >
> > > > > >
> > > > > > "LP" <lp@a.com> wrote in message
> > > > > > news:ezCf58UGFHA.1456@TK2MSFTNGP09.phx.gbl...
> > > > > > > Brian, I am not using ReportDocument object, I am setting[/color][/color]
> viewers[color=green][color=darkred]
> > > > > > > ReportSource to a report file directly:
> > > > > > >
> > > > > > > crViewer.ReportSource = Server.MapPath("Reports/" &[/color][/color][/color]
reportName)[color=blue][color=green][color=darkred]
> > > > > > >
> > > > > > > What should I do in this case?
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Thanks
> > > > > > >
> > > > > > >
> > > > > > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in[/color][/color]
> message[color=green][color=darkred]
> > > > > > > news:eQZxtDUGFHA.548@TK2MSFTNGP14.phx.gbl...
> > > > > > > > You have to cache the report object. Save the report object[/color][/color][/color]
to[color=blue][color=green]
> > the[color=darkred]
> > >
> > > > > > > Session()
> > > > > > > > collection and then restore it upon page refresh (be sure to
> > > > explicity
> > > > > > > cast
> > > > > > > > it as a ReportDocument). ASP.NET reports do all kinds of[/color][/color][/color]
funny[color=blue][color=green][color=darkred]
> > > > things
> > > > > if
> > > > > > > you
> > > > > > > > don't save them between page refreshes.
> > > > > > > >
> > > > > > > > HTH,
> > > > > > > >
> > > > > > > > Brian Bischof
> > > > > > > > www.CrystalReportsBook.com
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > "LP" <lp@a.com> wrote in message
> > > > > > > > news:OgS0FtTGFHA.2876@TK2MSFTNGP12.phx.gbl...
> > > > > > > > > I am using (trying to) CR version XI, cascading parameters
> > > feature
> > > > > > works
> > > > > > > > it
> > > > > > > > > asks user to enter params. But if page is resubmitted. It
> > > prompts
> > > > > for
> > > > > > > > params
> > > > > > > > > again. I did set ReuseParameterValuesOnRefresh="True" in a
> > > viewer,
> > > > > but
> > > > > > > it
> > > > > > > > > still doesn't work. Did anyone run into this problem.[/color][/color][/color]
What's[color=blue][color=green]
> > the[color=darkred]
> > > > > > > solution?
> > > > > > > > > Please help.
> > > > > > > > >
> > > > > > > > > Thank you
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>
>[/color]


LP
Guest
 
Posts: n/a
#11: Nov 19 '05

re: Crystal Reports Cascading parameters don't get preserved between postbacks


> Are you saying that you don't get the Open/Save dialog box or you do get
it?

I do NOT get it. When I click export icon it opens a popup window with
Excel, or Word embedded in the window, but no toolbars no nothing and
certainly NO "Save as" dialog box. If you could come up with a way to
provide users with ability to "save as" what's embedded inside a popup, I
would greatly appreciate it.

Thanks

"Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
news:%23vaVMUjGFHA.1096@tk2msftngp13.phx.gbl...[color=blue]
> Are you saying that you don't get the Open/Save dialog box or you do get[/color]
it?[color=blue]
> It seems that you don't get it at all. I get it on my computer and I think
> this is a browser issue. As I said earlier, I was able to turn
> enable/disable it using a PDF option. The second issue of the toolbar not
> having the Save buttons could be a header issue. I'm not knowledgeable[/color]
about[color=blue]
> HTML headers but it does make sense that the header tags can control this.[/color]
I[color=blue]
> will have to research that tomorrow.
>
> Brian Bischof
> www.CrystalReportsBook.com
>
>
>
> "LP" <lp@a.com> wrote in message
> news:%23GkSYeiGFHA.2620@tk2msftngp13.phx.gbl...[color=green]
> > Brian, Thanks for looking into this for me.
> > I think you understand my problem. But just to be clear:
> > When I click export button of a webviewer, it does open a popup window[/color][/color]
and[color=blue][color=green]
> > loads excel, word, etc. into the window. But there's no obvious way to[/color]
> save[color=green]
> > it to a local drive as a file (other than copy and paste) And, yes, you[/color]
> are[color=green]
> > right PDF is the only format with a toolbar that has "save as" icon. But[/color][/color]
I[color=blue][color=green]
> > think it's part of PDF object embedded within a browser. I also looked[/color][/color]
in[color=blue][color=green]
> > browser settings to make it open "save as" dialog box, but could not[/color][/color]
find[color=blue][color=green]
> > anything.
> > But I begin to doubt that it is a browser issue like you suggesting. I[/color]
> think[color=green]
> > this behavior is controlled by HTTP header tags. I know that there's a
> > header tag content-type (or something like that) where you can specify
> > ms-excel, ms-word, etc. And there's also "attachment; filename=" tag[/color][/color]
where[color=blue][color=green]
> > you can give file name and browser then will prompt you to save or open[/color]
> that[color=green]
> > file. So, I do think it's the way CR not providing the right HTTP header
> > tags for the popup is a root of the problem. So, I am thinking of
> > intercepting CR rendered HTML and modifying it, but I haven't had any[/color][/color]
time[color=blue][color=green]
> > to do anything serious like that, after all I am just building a demo[/color][/color]
app.[color=blue][color=green]
> > Let me know if you find anything else, or if I am on the right track.
> >
> > Thank you again for your input.
> >
> >
> > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
> > news:%23rZC84fGFHA.2524@TK2MSFTNGP15.phx.gbl...[color=darkred]
> > > Hmmm. I'm looking over all your posts. The first post you had last[/color][/color][/color]
week[color=blue][color=green]
> > said[color=darkred]
> > > that you couldn't get the Save As dialog box to open. Instead, it[/color][/color][/color]
always[color=blue][color=green][color=darkred]
> > > spawned a new window. Now it seems that when you are in the new window[/color][/color]
> it[color=green][color=darkred]
> > > won't allow saving the data. I assume this is a direct result of not[/color][/color]
> being[color=green][color=darkred]
> > > able to solve the first problem. So here are my comments.
> > >
> > > First is that if the export button doesn't open the Save/Open dialog[/color][/color]
> box,[color=green][color=darkred]
> > > then I think it's a browser issue. For example, at the bottom of the[/color]
> > dialog[color=darkred]
> > > box is a checkbox telling whether it should prompt you with this or[/color][/color][/color]
not.[color=blue]
> I[color=green][color=darkred]
> > > played around with it for Excel and Word but this had no effect. I did[/color]
> > find[color=darkred]
> > > out that I can change this with Adobe inside the Adobe Internet[/color]
> > preferences.[color=darkred]
> > > After fixing that I got the Open/Save box for PDFs again. I looked in
> > > preferences for Excel/Word and couldn't find such an option. Thus, the[/color][/color]
> PDF[color=green][color=darkred]
> > > option makes me think that the browser is controlling this and not CR[/color][/color]
> XI.[color=green][color=darkred]
> > > Overall, I have the Open/Save dialog popping up for all file types in[/color][/color][/color]
my[color=blue][color=green][color=darkred]
> > > brower and you should be able to get them too.
> > >
> > > Re the Excel and Word browsers not letting you save data, this is[/color]
> > happening[color=darkred]
> > > with my computer as well. However, again I have to question if this is[/color][/color][/color]
a[color=blue][color=green][color=darkred]
> > > browser issue or a CR XI issue since XI is just sending the XLS file[/color][/color][/color]
to[color=blue][color=green]
> > the[color=darkred]
> > > browser. I'll continue to play with it b/c I don't know the answer to[/color][/color]
> this[color=green][color=darkred]
> > > one yet. But I think your best bet is to look at the first issue and[/color][/color][/color]
get[color=blue][color=green]
> > the[color=darkred]
> > > Open/Save dialog box to pop up by tweaking the IE settings.
> > >
> > > HTH,
> > >
> > > Brian Bischof
> > > www.CrystalReportsBook.com
> > >
> > >
> > >
> > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
> > > news:%236jPVYfGFHA.3472@TK2MSFTNGP09.phx.gbl...
> > > > Those are good points. Let me look into the export problem of not[/color][/color]
> saving[color=green][color=darkred]
> > > to
> > > > disk and see if I can get you an answer.
> > > >
> > > > Brian
> > > >
> > > >
> > > > "LP" <lp@a.com> wrote in message
> > > > news:%23VXeKbeGFHA.4088@TK2MSFTNGP09.phx.gbl...
> > > > > >The best practice is to use the
> > > > > > ReportDocument object model (unless working with WebServices).[/color][/color][/color]
Try[color=blue][color=green][color=darkred]
> > > that
> > > > > and
> > > > > > post the results here.
> > > > >
> > > > > ReportDocument did work for me for postback problems. But I also[/color][/color]
> have[color=green]
> > a[color=darkred]
> > > > > button that exports report to excel and then sends this file to a[/color]
> > client[color=darkred]
> > > > > through HTTP. I could not get that to work with one parameterized
> > > report.
> > > > > Parameters don't seem to get cached with reportdocument. I tried[/color][/color][/color]
my[color=blue][color=green][color=darkred]
> > > > > different things, like caching actuall ParamFields object, etc.[/color][/color][/color]
but[color=blue][color=green][color=darkred]
> > > > nothing
> > > > > seems to work.
> > > > > I need this button because export in Crystal webviewer opens a[/color][/color][/color]
popup[color=blue][color=green][color=darkred]
> > > > window
> > > > > with no toolbars, so users can't save it to a file. If I could[/color][/color][/color]
find[color=blue][color=green][color=darkred]
> > > > > workaround that, there would not be a need for this custom export
> > > button.
> > > > My
> > > > > biggest problem with Crystal right now is very simple but yet[/color]
> > important[color=darkred]
> > > > > things take so much time effort to do that it becomes questionanle[/color][/color]
> if[color=green][color=darkred]
> > > it's
> > > > > all worth it. And default behavior of Crystal is just bizarre like
> > > opening
> > > > a
> > > > > popup with no toolbars when exporting to another format, so file[/color][/color]
> can't[color=green][color=darkred]
> > > be
> > > > > "save as"
> > > > >
> > > > >
> > > > >
> > > > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
> > > > > news:%230b8BKdGFHA.2976@TK2MSFTNGP09.phx.gbl...
> > > > > > I agree about the confusing API. Have you seen my existing book,
> > > > "Crystal
> > > > > > Reports .NET Programming"? It teaches you how to use the .NET[/color][/color]
> object[color=green][color=darkred]
> > > > model
> > > > > > and has many tips and tricks for getting it to work. Anyway, it[/color][/color]
> only[color=green][color=darkred]
> > > > > touches
> > > > > > on the RAS and RDC programming a bit (I don't know if using that[/color][/color]
> or[color=green][color=darkred]
> > > > not).
> > > > > > I'm going to do another book which is hardcore RAS programming[/color]
> > because[color=darkred]
> > > > RAS
> > > > > > is extremely complicated to learn and program with.. But that[/color][/color]
> won't[color=green]
> > be[color=darkred]
> > > > > till
> > > > > > after I finish the CR XI book I'm working on now.
> > > > > >
> > > > > > Anyway, to answer your question, the mistake most people make is[/color]
> > that[color=darkred]
> > > > they
> > > > > > mix up the viewer object model with the report object model.[/color][/color][/color]
They[color=blue][color=green]
> > set[color=darkred]
> > > > some
> > > > > > properties using one object and set other properties using the[/color][/color]
> other[color=green][color=darkred]
> > > > > object
> > > > > > model. Then they get consfused when some of the properties get
> > > dropped.
> > > > > You
> > > > > > can only use ONE object model at a time. The best practice is to[/color][/color]
> use[color=green][color=darkred]
> > > the
> > > > > > ReportDocument object model (unless working with WebServices).[/color][/color][/color]
Try[color=blue][color=green][color=darkred]
> > > that
> > > > > and
> > > > > > post the results here.
> > > > > >
> > > > > > Brian Bischof
> > > > > > www.CrystalReportsBook.com
> > > > > >
> > > > > >
> > > > > >
> > > > > > "LP" <lp@a.com> wrote in message
> > > > > > news:eS$1FzVGFHA.3612@TK2MSFTNGP09.phx.gbl...
> > > > > > > Ok, I did change it to ReportDocument , and that worked for me[/color]
> > even[color=darkred]
> > > > > > without
> > > > > > > saving it to Session Variable. But now I am having another[/color][/color]
> problem[color=green][color=darkred]
> > > > with
> > > > > > > exporting. I have another button that export report to excel[/color][/color][/color]
and[color=blue][color=green][color=darkred]
> > > sends
> > > > a
> > > > > > > file to a client, so now one parameterized report doesn't[/color][/color][/color]
work.[color=blue]
> I[color=green][color=darkred]
> > > > tried
> > > > > > > saving reportDoc and it ParameterFields to session and[/color][/color]
> retrieving,[color=green][color=darkred]
> > > but
> > > > > > > nothing works.
> > > > > > > I think CR is a very good product, very sharp looking reports[/color]
> > (when[color=darkred]
> > > > you
> > > > > > get
> > > > > > > them to work), very slick designer especially version XI. But[/color]
> > their[color=darkred]
> > > > API
> > > > > > and
> > > > > > > object hierarchy is terribly confusing and inconsistent with[/color][/color]
> what[color=green][color=darkred]
> > > one
> > > > > > would
> > > > > > > expect from .NET friendly product, I haven't seen any good
> > > > documentation
> > > > > > on
> > > > > > > their APIs.
> > > > > > >
> > > > > > >
> > > > > > > "LP" <lp@a.com> wrote in message
> > > > > > > news:ezCf58UGFHA.1456@TK2MSFTNGP09.phx.gbl...
> > > > > > > > Brian, I am not using ReportDocument object, I am setting[/color]
> > viewers[color=darkred]
> > > > > > > > ReportSource to a report file directly:
> > > > > > > >
> > > > > > > > crViewer.ReportSource = Server.MapPath("Reports/" &[/color][/color]
> reportName)[color=green][color=darkred]
> > > > > > > >
> > > > > > > > What should I do in this case?
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > Thanks
> > > > > > > >
> > > > > > > >
> > > > > > > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in[/color]
> > message[color=darkred]
> > > > > > > > news:eQZxtDUGFHA.548@TK2MSFTNGP14.phx.gbl...
> > > > > > > > > You have to cache the report object. Save the report[/color][/color][/color]
object[color=blue]
> to[color=green][color=darkred]
> > > the
> > > >
> > > > > > > > Session()
> > > > > > > > > collection and then restore it upon page refresh (be sure[/color][/color][/color]
to[color=blue][color=green][color=darkred]
> > > > > explicity
> > > > > > > > cast
> > > > > > > > > it as a ReportDocument). ASP.NET reports do all kinds of[/color][/color]
> funny[color=green][color=darkred]
> > > > > things
> > > > > > if
> > > > > > > > you
> > > > > > > > > don't save them between page refreshes.
> > > > > > > > >
> > > > > > > > > HTH,
> > > > > > > > >
> > > > > > > > > Brian Bischof
> > > > > > > > > www.CrystalReportsBook.com
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > "LP" <lp@a.com> wrote in message
> > > > > > > > > news:OgS0FtTGFHA.2876@TK2MSFTNGP12.phx.gbl...
> > > > > > > > > > I am using (trying to) CR version XI, cascading[/color][/color][/color]
parameters[color=blue][color=green][color=darkred]
> > > > feature
> > > > > > > works
> > > > > > > > > it
> > > > > > > > > > asks user to enter params. But if page is resubmitted.[/color][/color][/color]
It[color=blue][color=green][color=darkred]
> > > > prompts
> > > > > > for
> > > > > > > > > params
> > > > > > > > > > again. I did set ReuseParameterValuesOnRefresh="True" in[/color][/color][/color]
a[color=blue][color=green][color=darkred]
> > > > viewer,
> > > > > > but
> > > > > > > > it
> > > > > > > > > > still doesn't work. Did anyone run into this problem.[/color][/color]
> What's[color=green][color=darkred]
> > > the
> > > > > > > > solution?
> > > > > > > > > > Please help.
> > > > > > > > > >
> > > > > > > > > > Thank you
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >[/color]
> >
> >
> >[/color]
>
>[/color]


Brian Bischof
Guest
 
Posts: n/a
#12: Nov 19 '05

re: Crystal Reports Cascading parameters don't get preserved between postbacks


Ok, that's what I thought. I think that is a browser issue b/c I was able to
toggle this feature on and off. For example, I can go into Adobe Properties
and turn this on and off using one of their options. When that dialog box
opens, there is a checkbox at the bottom about whether you should be
prompted with this box again or just open the file directly. Thus, this is a
browser setting. The header doesn't control it b/c on my computer I was able
to get the dialog box to come up or send it directly to a browser window
using and Adobe Properties setting. I would search Google to see how to turn
this on or off.

Brian



"LP" <lp@a.com> wrote in message
news:erPQ26oGFHA.1176@TK2MSFTNGP12.phx.gbl...[color=blue][color=green]
> > Are you saying that you don't get the Open/Save dialog box or you do get[/color]
> it?
>
> I do NOT get it. When I click export icon it opens a popup window with
> Excel, or Word embedded in the window, but no toolbars no nothing and
> certainly NO "Save as" dialog box. If you could come up with a way to
> provide users with ability to "save as" what's embedded inside a popup, I
> would greatly appreciate it.
>
> Thanks
>
> "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
> news:%23vaVMUjGFHA.1096@tk2msftngp13.phx.gbl...[color=green]
> > Are you saying that you don't get the Open/Save dialog box or you do get[/color]
> it?[color=green]
> > It seems that you don't get it at all. I get it on my computer and I[/color][/color]
think[color=blue][color=green]
> > this is a browser issue. As I said earlier, I was able to turn
> > enable/disable it using a PDF option. The second issue of the toolbar[/color][/color]
not[color=blue][color=green]
> > having the Save buttons could be a header issue. I'm not knowledgeable[/color]
> about[color=green]
> > HTML headers but it does make sense that the header tags can control[/color][/color]
this.[color=blue]
> I[color=green]
> > will have to research that tomorrow.
> >
> > Brian Bischof
> > www.CrystalReportsBook.com
> >
> >
> >
> > "LP" <lp@a.com> wrote in message
> > news:%23GkSYeiGFHA.2620@tk2msftngp13.phx.gbl...[color=darkred]
> > > Brian, Thanks for looking into this for me.
> > > I think you understand my problem. But just to be clear:
> > > When I click export button of a webviewer, it does open a popup window[/color][/color]
> and[color=green][color=darkred]
> > > loads excel, word, etc. into the window. But there's no obvious way to[/color]
> > save[color=darkred]
> > > it to a local drive as a file (other than copy and paste) And, yes,[/color][/color][/color]
you[color=blue][color=green]
> > are[color=darkred]
> > > right PDF is the only format with a toolbar that has "save as" icon.[/color][/color][/color]
But[color=blue]
> I[color=green][color=darkred]
> > > think it's part of PDF object embedded within a browser. I also looked[/color][/color]
> in[color=green][color=darkred]
> > > browser settings to make it open "save as" dialog box, but could not[/color][/color]
> find[color=green][color=darkred]
> > > anything.
> > > But I begin to doubt that it is a browser issue like you suggesting. I[/color]
> > think[color=darkred]
> > > this behavior is controlled by HTTP header tags. I know that there's a
> > > header tag content-type (or something like that) where you can specify
> > > ms-excel, ms-word, etc. And there's also "attachment; filename=" tag[/color][/color]
> where[color=green][color=darkred]
> > > you can give file name and browser then will prompt you to save or[/color][/color][/color]
open[color=blue][color=green]
> > that[color=darkred]
> > > file. So, I do think it's the way CR not providing the right HTTP[/color][/color][/color]
header[color=blue][color=green][color=darkred]
> > > tags for the popup is a root of the problem. So, I am thinking of
> > > intercepting CR rendered HTML and modifying it, but I haven't had any[/color][/color]
> time[color=green][color=darkred]
> > > to do anything serious like that, after all I am just building a demo[/color][/color]
> app.[color=green][color=darkred]
> > > Let me know if you find anything else, or if I am on the right track.
> > >
> > > Thank you again for your input.
> > >
> > >
> > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
> > > news:%23rZC84fGFHA.2524@TK2MSFTNGP15.phx.gbl...
> > > > Hmmm. I'm looking over all your posts. The first post you had last[/color][/color]
> week[color=green][color=darkred]
> > > said
> > > > that you couldn't get the Save As dialog box to open. Instead, it[/color][/color]
> always[color=green][color=darkred]
> > > > spawned a new window. Now it seems that when you are in the new[/color][/color][/color]
window[color=blue][color=green]
> > it[color=darkred]
> > > > won't allow saving the data. I assume this is a direct result of not[/color]
> > being[color=darkred]
> > > > able to solve the first problem. So here are my comments.
> > > >
> > > > First is that if the export button doesn't open the Save/Open dialog[/color]
> > box,[color=darkred]
> > > > then I think it's a browser issue. For example, at the bottom of the
> > > dialog
> > > > box is a checkbox telling whether it should prompt you with this or[/color][/color]
> not.[color=green]
> > I[color=darkred]
> > > > played around with it for Excel and Word but this had no effect. I[/color][/color][/color]
did[color=blue][color=green][color=darkred]
> > > find
> > > > out that I can change this with Adobe inside the Adobe Internet
> > > preferences.
> > > > After fixing that I got the Open/Save box for PDFs again. I looked[/color][/color][/color]
in[color=blue][color=green][color=darkred]
> > > > preferences for Excel/Word and couldn't find such an option. Thus,[/color][/color][/color]
the[color=blue][color=green]
> > PDF[color=darkred]
> > > > option makes me think that the browser is controlling this and not[/color][/color][/color]
CR[color=blue][color=green]
> > XI.[color=darkred]
> > > > Overall, I have the Open/Save dialog popping up for all file types[/color][/color][/color]
in[color=blue]
> my[color=green][color=darkred]
> > > > brower and you should be able to get them too.
> > > >
> > > > Re the Excel and Word browsers not letting you save data, this is
> > > happening
> > > > with my computer as well. However, again I have to question if this[/color][/color][/color]
is[color=blue]
> a[color=green][color=darkred]
> > > > browser issue or a CR XI issue since XI is just sending the XLS file[/color][/color]
> to[color=green][color=darkred]
> > > the
> > > > browser. I'll continue to play with it b/c I don't know the answer[/color][/color][/color]
to[color=blue][color=green]
> > this[color=darkred]
> > > > one yet. But I think your best bet is to look at the first issue and[/color][/color]
> get[color=green][color=darkred]
> > > the
> > > > Open/Save dialog box to pop up by tweaking the IE settings.
> > > >
> > > > HTH,
> > > >
> > > > Brian Bischof
> > > > www.CrystalReportsBook.com
> > > >
> > > >
> > > >
> > > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
> > > > news:%236jPVYfGFHA.3472@TK2MSFTNGP09.phx.gbl...
> > > > > Those are good points. Let me look into the export problem of not[/color]
> > saving[color=darkred]
> > > > to
> > > > > disk and see if I can get you an answer.
> > > > >
> > > > > Brian
> > > > >
> > > > >
> > > > > "LP" <lp@a.com> wrote in message
> > > > > news:%23VXeKbeGFHA.4088@TK2MSFTNGP09.phx.gbl...
> > > > > > >The best practice is to use the
> > > > > > > ReportDocument object model (unless working with WebServices).[/color][/color]
> Try[color=green][color=darkred]
> > > > that
> > > > > > and
> > > > > > > post the results here.
> > > > > >
> > > > > > ReportDocument did work for me for postback problems. But I also[/color]
> > have[color=darkred]
> > > a
> > > > > > button that exports report to excel and then sends this file to[/color][/color][/color]
a[color=blue][color=green][color=darkred]
> > > client
> > > > > > through HTTP. I could not get that to work with one[/color][/color][/color]
parameterized[color=blue][color=green][color=darkred]
> > > > report.
> > > > > > Parameters don't seem to get cached with reportdocument. I tried[/color][/color]
> my[color=green][color=darkred]
> > > > > > different things, like caching actuall ParamFields object, etc.[/color][/color]
> but[color=green][color=darkred]
> > > > > nothing
> > > > > > seems to work.
> > > > > > I need this button because export in Crystal webviewer opens a[/color][/color]
> popup[color=green][color=darkred]
> > > > > window
> > > > > > with no toolbars, so users can't save it to a file. If I could[/color][/color]
> find[color=green][color=darkred]
> > > > > > workaround that, there would not be a need for this custom[/color][/color][/color]
export[color=blue][color=green][color=darkred]
> > > > button.
> > > > > My
> > > > > > biggest problem with Crystal right now is very simple but yet
> > > important
> > > > > > things take so much time effort to do that it becomes[/color][/color][/color]
questionanle[color=blue][color=green]
> > if[color=darkred]
> > > > it's
> > > > > > all worth it. And default behavior of Crystal is just bizarre[/color][/color][/color]
like[color=blue][color=green][color=darkred]
> > > > opening
> > > > > a
> > > > > > popup with no toolbars when exporting to another format, so file[/color]
> > can't[color=darkred]
> > > > be
> > > > > > "save as"
> > > > > >
> > > > > >
> > > > > >
> > > > > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in[/color][/color][/color]
message[color=blue][color=green][color=darkred]
> > > > > > news:%230b8BKdGFHA.2976@TK2MSFTNGP09.phx.gbl...
> > > > > > > I agree about the confusing API. Have you seen my existing[/color][/color][/color]
book,[color=blue][color=green][color=darkred]
> > > > > "Crystal
> > > > > > > Reports .NET Programming"? It teaches you how to use the .NET[/color]
> > object[color=darkred]
> > > > > model
> > > > > > > and has many tips and tricks for getting it to work. Anyway,[/color][/color][/color]
it[color=blue][color=green]
> > only[color=darkred]
> > > > > > touches
> > > > > > > on the RAS and RDC programming a bit (I don't know if using[/color][/color][/color]
that[color=blue][color=green]
> > or[color=darkred]
> > > > > not).
> > > > > > > I'm going to do another book which is hardcore RAS programming
> > > because
> > > > > RAS
> > > > > > > is extremely complicated to learn and program with.. But that[/color]
> > won't[color=darkred]
> > > be
> > > > > > till
> > > > > > > after I finish the CR XI book I'm working on now.
> > > > > > >
> > > > > > > Anyway, to answer your question, the mistake most people make[/color][/color][/color]
is[color=blue][color=green][color=darkred]
> > > that
> > > > > they
> > > > > > > mix up the viewer object model with the report object model.[/color][/color]
> They[color=green][color=darkred]
> > > set
> > > > > some
> > > > > > > properties using one object and set other properties using the[/color]
> > other[color=darkred]
> > > > > > object
> > > > > > > model. Then they get consfused when some of the properties get
> > > > dropped.
> > > > > > You
> > > > > > > can only use ONE object model at a time. The best practice is[/color][/color][/color]
to[color=blue][color=green]
> > use[color=darkred]
> > > > the
> > > > > > > ReportDocument object model (unless working with WebServices).[/color][/color]
> Try[color=green][color=darkred]
> > > > that
> > > > > > and
> > > > > > > post the results here.
> > > > > > >
> > > > > > > Brian Bischof
> > > > > > > www.CrystalReportsBook.com
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > "LP" <lp@a.com> wrote in message
> > > > > > > news:eS$1FzVGFHA.3612@TK2MSFTNGP09.phx.gbl...
> > > > > > > > Ok, I did change it to ReportDocument , and that worked for[/color][/color][/color]
me[color=blue][color=green][color=darkred]
> > > even
> > > > > > > without
> > > > > > > > saving it to Session Variable. But now I am having another[/color]
> > problem[color=darkred]
> > > > > with
> > > > > > > > exporting. I have another button that export report to excel[/color][/color]
> and[color=green][color=darkred]
> > > > sends
> > > > > a
> > > > > > > > file to a client, so now one parameterized report doesn't[/color][/color]
> work.[color=green]
> > I[color=darkred]
> > > > > tried
> > > > > > > > saving reportDoc and it ParameterFields to session and[/color]
> > retrieving,[color=darkred]
> > > > but
> > > > > > > > nothing works.
> > > > > > > > I think CR is a very good product, very sharp looking[/color][/color][/color]
reports[color=blue][color=green][color=darkred]
> > > (when
> > > > > you
> > > > > > > get
> > > > > > > > them to work), very slick designer especially version XI.[/color][/color][/color]
But[color=blue][color=green][color=darkred]
> > > their
> > > > > API
> > > > > > > and
> > > > > > > > object hierarchy is terribly confusing and inconsistent with[/color]
> > what[color=darkred]
> > > > one
> > > > > > > would
> > > > > > > > expect from .NET friendly product, I haven't seen any good
> > > > > documentation
> > > > > > > on
> > > > > > > > their APIs.
> > > > > > > >
> > > > > > > >
> > > > > > > > "LP" <lp@a.com> wrote in message
> > > > > > > > news:ezCf58UGFHA.1456@TK2MSFTNGP09.phx.gbl...
> > > > > > > > > Brian, I am not using ReportDocument object, I am setting
> > > viewers
> > > > > > > > > ReportSource to a report file directly:
> > > > > > > > >
> > > > > > > > > crViewer.ReportSource = Server.MapPath("Reports/" &[/color]
> > reportName)[color=darkred]
> > > > > > > > >
> > > > > > > > > What should I do in this case?
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Thanks
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in
> > > message
> > > > > > > > > news:eQZxtDUGFHA.548@TK2MSFTNGP14.phx.gbl...
> > > > > > > > > > You have to cache the report object. Save the report[/color][/color]
> object[color=green]
> > to[color=darkred]
> > > > the
> > > > >
> > > > > > > > > Session()
> > > > > > > > > > collection and then restore it upon page refresh (be[/color][/color][/color]
sure[color=blue]
> to[color=green][color=darkred]
> > > > > > explicity
> > > > > > > > > cast
> > > > > > > > > > it as a ReportDocument). ASP.NET reports do all kinds of[/color]
> > funny[color=darkred]
> > > > > > things
> > > > > > > if
> > > > > > > > > you
> > > > > > > > > > don't save them between page refreshes.
> > > > > > > > > >
> > > > > > > > > > HTH,
> > > > > > > > > >
> > > > > > > > > > Brian Bischof
> > > > > > > > > > www.CrystalReportsBook.com
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > "LP" <lp@a.com> wrote in message
> > > > > > > > > > news:OgS0FtTGFHA.2876@TK2MSFTNGP12.phx.gbl...
> > > > > > > > > > > I am using (trying to) CR version XI, cascading[/color][/color]
> parameters[color=green][color=darkred]
> > > > > feature
> > > > > > > > works
> > > > > > > > > > it
> > > > > > > > > > > asks user to enter params. But if page is resubmitted.[/color][/color]
> It[color=green][color=darkred]
> > > > > prompts
> > > > > > > for
> > > > > > > > > > params
> > > > > > > > > > > again. I did set ReuseParameterValuesOnRefresh="True"[/color][/color][/color]
in[color=blue]
> a[color=green][color=darkred]
> > > > > viewer,
> > > > > > > but
> > > > > > > > > it
> > > > > > > > > > > still doesn't work. Did anyone run into this problem.[/color]
> > What's[color=darkred]
> > > > the
> > > > > > > > > solution?
> > > > > > > > > > > Please help.
> > > > > > > > > > >
> > > > > > > > > > > Thank you
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


LP
Guest
 
Posts: n/a
#13: Nov 19 '05

re: Crystal Reports Cascading parameters don't get preserved between postbacks


> For example, I can go into Adobe Properties[color=blue]
> and turn this on and off using one of their options. When that dialog box
> opens, there is a checkbox at the bottom about whether you should be
> prompted with this box again or just open the file directly.[/color]

You are tweaking Adobe settings not the browser.
[color=blue]
>Thus, this is a
> browser setting.[/color]
No, it's Adobe setting.

I can't find similar setting in browser or Excel Word either. And again lets
assume it's a browser setting, but that would default behavior of a browser.
So by default CR export functionality is unusable. I don't understand how CR
vendor (BusinessObjects as of today) could not see that someone would
actually want to save exported file, not just look at it in a popup window.
When I get a chance, I'll look into how to filter HTML rendered by CR and
modify it to enable save as functionality.


"Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
news:%23mI5GUpGFHA.3312@TK2MSFTNGP10.phx.gbl...[color=blue]
> Ok, that's what I thought. I think that is a browser issue b/c I was able[/color]
to[color=blue]
> toggle this feature on and off. For example, I can go into Adobe[/color]
Properties[color=blue]
> and turn this on and off using one of their options. When that dialog box
> opens, there is a checkbox at the bottom about whether you should be
> prompted with this box again or just open the file directly. Thus, this is[/color]
a[color=blue]
> browser setting. The header doesn't control it b/c on my computer I was[/color]
able[color=blue]
> to get the dialog box to come up or send it directly to a browser window
> using and Adobe Properties setting. I would search Google to see how to[/color]
turn[color=blue]
> this on or off.
>
> Brian
>
>
>
> "LP" <lp@a.com> wrote in message
> news:erPQ26oGFHA.1176@TK2MSFTNGP12.phx.gbl...[color=green][color=darkred]
> > > Are you saying that you don't get the Open/Save dialog box or you do[/color][/color][/color]
get[color=blue][color=green]
> > it?
> >
> > I do NOT get it. When I click export icon it opens a popup window with
> > Excel, or Word embedded in the window, but no toolbars no nothing and
> > certainly NO "Save as" dialog box. If you could come up with a way to
> > provide users with ability to "save as" what's embedded inside a popup,[/color][/color]
I[color=blue][color=green]
> > would greatly appreciate it.
> >
> > Thanks
> >
> > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
> > news:%23vaVMUjGFHA.1096@tk2msftngp13.phx.gbl...[color=darkred]
> > > Are you saying that you don't get the Open/Save dialog box or you do[/color][/color][/color]
get[color=blue][color=green]
> > it?[color=darkred]
> > > It seems that you don't get it at all. I get it on my computer and I[/color][/color]
> think[color=green][color=darkred]
> > > this is a browser issue. As I said earlier, I was able to turn
> > > enable/disable it using a PDF option. The second issue of the toolbar[/color][/color]
> not[color=green][color=darkred]
> > > having the Save buttons could be a header issue. I'm not knowledgeable[/color]
> > about[color=darkred]
> > > HTML headers but it does make sense that the header tags can control[/color][/color]
> this.[color=green]
> > I[color=darkred]
> > > will have to research that tomorrow.
> > >
> > > Brian Bischof
> > > www.CrystalReportsBook.com
> > >
> > >
> > >
> > > "LP" <lp@a.com> wrote in message
> > > news:%23GkSYeiGFHA.2620@tk2msftngp13.phx.gbl...
> > > > Brian, Thanks for looking into this for me.
> > > > I think you understand my problem. But just to be clear:
> > > > When I click export button of a webviewer, it does open a popup[/color][/color][/color]
window[color=blue][color=green]
> > and[color=darkred]
> > > > loads excel, word, etc. into the window. But there's no obvious way[/color][/color][/color]
to[color=blue][color=green][color=darkred]
> > > save
> > > > it to a local drive as a file (other than copy and paste) And, yes,[/color][/color]
> you[color=green][color=darkred]
> > > are
> > > > right PDF is the only format with a toolbar that has "save as" icon.[/color][/color]
> But[color=green]
> > I[color=darkred]
> > > > think it's part of PDF object embedded within a browser. I also[/color][/color][/color]
looked[color=blue][color=green]
> > in[color=darkred]
> > > > browser settings to make it open "save as" dialog box, but could not[/color]
> > find[color=darkred]
> > > > anything.
> > > > But I begin to doubt that it is a browser issue like you suggesting.[/color][/color][/color]
I[color=blue][color=green][color=darkred]
> > > think
> > > > this behavior is controlled by HTTP header tags. I know that there's[/color][/color][/color]
a[color=blue][color=green][color=darkred]
> > > > header tag content-type (or something like that) where you can[/color][/color][/color]
specify[color=blue][color=green][color=darkred]
> > > > ms-excel, ms-word, etc. And there's also "attachment; filename=" tag[/color]
> > where[color=darkred]
> > > > you can give file name and browser then will prompt you to save or[/color][/color]
> open[color=green][color=darkred]
> > > that
> > > > file. So, I do think it's the way CR not providing the right HTTP[/color][/color]
> header[color=green][color=darkred]
> > > > tags for the popup is a root of the problem. So, I am thinking of
> > > > intercepting CR rendered HTML and modifying it, but I haven't had[/color][/color][/color]
any[color=blue][color=green]
> > time[color=darkred]
> > > > to do anything serious like that, after all I am just building a[/color][/color][/color]
demo[color=blue][color=green]
> > app.[color=darkred]
> > > > Let me know if you find anything else, or if I am on the right[/color][/color][/color]
track.[color=blue][color=green][color=darkred]
> > > >
> > > > Thank you again for your input.
> > > >
> > > >
> > > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
> > > > news:%23rZC84fGFHA.2524@TK2MSFTNGP15.phx.gbl...
> > > > > Hmmm. I'm looking over all your posts. The first post you had last[/color]
> > week[color=darkred]
> > > > said
> > > > > that you couldn't get the Save As dialog box to open. Instead, it[/color]
> > always[color=darkred]
> > > > > spawned a new window. Now it seems that when you are in the new[/color][/color]
> window[color=green][color=darkred]
> > > it
> > > > > won't allow saving the data. I assume this is a direct result of[/color][/color][/color]
not[color=blue][color=green][color=darkred]
> > > being
> > > > > able to solve the first problem. So here are my comments.
> > > > >
> > > > > First is that if the export button doesn't open the Save/Open[/color][/color][/color]
dialog[color=blue][color=green][color=darkred]
> > > box,
> > > > > then I think it's a browser issue. For example, at the bottom of[/color][/color][/color]
the[color=blue][color=green][color=darkred]
> > > > dialog
> > > > > box is a checkbox telling whether it should prompt you with this[/color][/color][/color]
or[color=blue][color=green]
> > not.[color=darkred]
> > > I
> > > > > played around with it for Excel and Word but this had no effect. I[/color][/color]
> did[color=green][color=darkred]
> > > > find
> > > > > out that I can change this with Adobe inside the Adobe Internet
> > > > preferences.
> > > > > After fixing that I got the Open/Save box for PDFs again. I looked[/color][/color]
> in[color=green][color=darkred]
> > > > > preferences for Excel/Word and couldn't find such an option. Thus,[/color][/color]
> the[color=green][color=darkred]
> > > PDF
> > > > > option makes me think that the browser is controlling this and not[/color][/color]
> CR[color=green][color=darkred]
> > > XI.
> > > > > Overall, I have the Open/Save dialog popping up for all file types[/color][/color]
> in[color=green]
> > my[color=darkred]
> > > > > brower and you should be able to get them too.
> > > > >
> > > > > Re the Excel and Word browsers not letting you save data, this is
> > > > happening
> > > > > with my computer as well. However, again I have to question if[/color][/color][/color]
this[color=blue]
> is[color=green]
> > a[color=darkred]
> > > > > browser issue or a CR XI issue since XI is just sending the XLS[/color][/color][/color]
file[color=blue][color=green]
> > to[color=darkred]
> > > > the
> > > > > browser. I'll continue to play with it b/c I don't know the answer[/color][/color]
> to[color=green][color=darkred]
> > > this
> > > > > one yet. But I think your best bet is to look at the first issue[/color][/color][/color]
and[color=blue][color=green]
> > get[color=darkred]
> > > > the
> > > > > Open/Save dialog box to pop up by tweaking the IE settings.
> > > > >
> > > > > HTH,
> > > > >
> > > > > Brian Bischof
> > > > > www.CrystalReportsBook.com
> > > > >
> > > > >
> > > > >
> > > > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
> > > > > news:%236jPVYfGFHA.3472@TK2MSFTNGP09.phx.gbl...
> > > > > > Those are good points. Let me look into the export problem of[/color][/color][/color]
not[color=blue][color=green][color=darkred]
> > > saving
> > > > > to
> > > > > > disk and see if I can get you an answer.
> > > > > >
> > > > > > Brian
> > > > > >
> > > > > >
> > > > > > "LP" <lp@a.com> wrote in message
> > > > > > news:%23VXeKbeGFHA.4088@TK2MSFTNGP09.phx.gbl...
> > > > > > > >The best practice is to use the
> > > > > > > > ReportDocument object model (unless working with[/color][/color][/color]
WebServices).[color=blue][color=green]
> > Try[color=darkred]
> > > > > that
> > > > > > > and
> > > > > > > > post the results here.
> > > > > > >
> > > > > > > ReportDocument did work for me for postback problems. But I[/color][/color][/color]
also[color=blue][color=green][color=darkred]
> > > have
> > > > a
> > > > > > > button that exports report to excel and then sends this file[/color][/color][/color]
to[color=blue]
> a[color=green][color=darkred]
> > > > client
> > > > > > > through HTTP. I could not get that to work with one[/color][/color]
> parameterized[color=green][color=darkred]
> > > > > report.
> > > > > > > Parameters don't seem to get cached with reportdocument. I[/color][/color][/color]
tried[color=blue][color=green]
> > my[color=darkred]
> > > > > > > different things, like caching actuall ParamFields object,[/color][/color][/color]
etc.[color=blue][color=green]
> > but[color=darkred]
> > > > > > nothing
> > > > > > > seems to work.
> > > > > > > I need this button because export in Crystal webviewer opens a[/color]
> > popup[color=darkred]
> > > > > > window
> > > > > > > with no toolbars, so users can't save it to a file. If I could[/color]
> > find[color=darkred]
> > > > > > > workaround that, there would not be a need for this custom[/color][/color]
> export[color=green][color=darkred]
> > > > > button.
> > > > > > My
> > > > > > > biggest problem with Crystal right now is very simple but yet
> > > > important
> > > > > > > things take so much time effort to do that it becomes[/color][/color]
> questionanle[color=green][color=darkred]
> > > if
> > > > > it's
> > > > > > > all worth it. And default behavior of Crystal is just bizarre[/color][/color]
> like[color=green][color=darkred]
> > > > > opening
> > > > > > a
> > > > > > > popup with no toolbars when exporting to another format, so[/color][/color][/color]
file[color=blue][color=green][color=darkred]
> > > can't
> > > > > be
> > > > > > > "save as"
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in[/color][/color]
> message[color=green][color=darkred]
> > > > > > > news:%230b8BKdGFHA.2976@TK2MSFTNGP09.phx.gbl...
> > > > > > > > I agree about the confusing API. Have you seen my existing[/color][/color]
> book,[color=green][color=darkred]
> > > > > > "Crystal
> > > > > > > > Reports .NET Programming"? It teaches you how to use the[/color][/color][/color]
..NET[color=blue][color=green][color=darkred]
> > > object
> > > > > > model
> > > > > > > > and has many tips and tricks for getting it to work. Anyway,[/color][/color]
> it[color=green][color=darkred]
> > > only
> > > > > > > touches
> > > > > > > > on the RAS and RDC programming a bit (I don't know if using[/color][/color]
> that[color=green][color=darkred]
> > > or
> > > > > > not).
> > > > > > > > I'm going to do another book which is hardcore RAS[/color][/color][/color]
programming[color=blue][color=green][color=darkred]
> > > > because
> > > > > > RAS
> > > > > > > > is extremely complicated to learn and program with.. But[/color][/color][/color]
that[color=blue][color=green][color=darkred]
> > > won't
> > > > be
> > > > > > > till
> > > > > > > > after I finish the CR XI book I'm working on now.
> > > > > > > >
> > > > > > > > Anyway, to answer your question, the mistake most people[/color][/color][/color]
make[color=blue]
> is[color=green][color=darkred]
> > > > that
> > > > > > they
> > > > > > > > mix up the viewer object model with the report object model.[/color]
> > They[color=darkred]
> > > > set
> > > > > > some
> > > > > > > > properties using one object and set other properties using[/color][/color][/color]
the[color=blue][color=green][color=darkred]
> > > other
> > > > > > > object
> > > > > > > > model. Then they get consfused when some of the properties[/color][/color][/color]
get[color=blue][color=green][color=darkred]
> > > > > dropped.
> > > > > > > You
> > > > > > > > can only use ONE object model at a time. The best practice[/color][/color][/color]
is[color=blue]
> to[color=green][color=darkred]
> > > use
> > > > > the
> > > > > > > > ReportDocument object model (unless working with[/color][/color][/color]
WebServices).[color=blue][color=green]
> > Try[color=darkred]
> > > > > that
> > > > > > > and
> > > > > > > > post the results here.
> > > > > > > >
> > > > > > > > Brian Bischof
> > > > > > > > www.CrystalReportsBook.com
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > "LP" <lp@a.com> wrote in message
> > > > > > > > news:eS$1FzVGFHA.3612@TK2MSFTNGP09.phx.gbl...
> > > > > > > > > Ok, I did change it to ReportDocument , and that worked[/color][/color][/color]
for[color=blue]
> me[color=green][color=darkred]
> > > > even
> > > > > > > > without
> > > > > > > > > saving it to Session Variable. But now I am having another
> > > problem
> > > > > > with
> > > > > > > > > exporting. I have another button that export report to[/color][/color][/color]
excel[color=blue][color=green]
> > and[color=darkred]
> > > > > sends
> > > > > > a
> > > > > > > > > file to a client, so now one parameterized report doesn't[/color]
> > work.[color=darkred]
> > > I
> > > > > > tried
> > > > > > > > > saving reportDoc and it ParameterFields to session and
> > > retrieving,
> > > > > but
> > > > > > > > > nothing works.
> > > > > > > > > I think CR is a very good product, very sharp looking[/color][/color]
> reports[color=green][color=darkred]
> > > > (when
> > > > > > you
> > > > > > > > get
> > > > > > > > > them to work), very slick designer especially version XI.[/color][/color]
> But[color=green][color=darkred]
> > > > their
> > > > > > API
> > > > > > > > and
> > > > > > > > > object hierarchy is terribly confusing and inconsistent[/color][/color][/color]
with[color=blue][color=green][color=darkred]
> > > what
> > > > > one
> > > > > > > > would
> > > > > > > > > expect from .NET friendly product, I haven't seen any good
> > > > > > documentation
> > > > > > > > on
> > > > > > > > > their APIs.
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > "LP" <lp@a.com> wrote in message
> > > > > > > > > news:ezCf58UGFHA.1456@TK2MSFTNGP09.phx.gbl...
> > > > > > > > > > Brian, I am not using ReportDocument object, I am[/color][/color][/color]
setting[color=blue][color=green][color=darkred]
> > > > viewers
> > > > > > > > > > ReportSource to a report file directly:
> > > > > > > > > >
> > > > > > > > > > crViewer.ReportSource = Server.MapPath("Reports/" &
> > > reportName)
> > > > > > > > > >
> > > > > > > > > > What should I do in this case?
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > Thanks
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote[/color][/color][/color]
in[color=blue][color=green][color=darkred]
> > > > message
> > > > > > > > > > news:eQZxtDUGFHA.548@TK2MSFTNGP14.phx.gbl...
> > > > > > > > > > > You have to cache the report object. Save the report[/color]
> > object[color=darkred]
> > > to
> > > > > the
> > > > > >
> > > > > > > > > > Session()
> > > > > > > > > > > collection and then restore it upon page refresh (be[/color][/color]
> sure[color=green]
> > to[color=darkred]
> > > > > > > explicity
> > > > > > > > > > cast
> > > > > > > > > > > it as a ReportDocument). ASP.NET reports do all kinds[/color][/color][/color]
of[color=blue][color=green][color=darkred]
> > > funny
> > > > > > > things
> > > > > > > > if
> > > > > > > > > > you
> > > > > > > > > > > don't save them between page refreshes.
> > > > > > > > > > >
> > > > > > > > > > > HTH,
> > > > > > > > > > >
> > > > > > > > > > > Brian Bischof
> > > > > > > > > > > www.CrystalReportsBook.com
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > "LP" <lp@a.com> wrote in message
> > > > > > > > > > > news:OgS0FtTGFHA.2876@TK2MSFTNGP12.phx.gbl...
> > > > > > > > > > > > I am using (trying to) CR version XI, cascading[/color]
> > parameters[color=darkred]
> > > > > > feature
> > > > > > > > > works
> > > > > > > > > > > it
> > > > > > > > > > > > asks user to enter params. But if page is[/color][/color][/color]
resubmitted.[color=blue][color=green]
> > It[color=darkred]
> > > > > > prompts
> > > > > > > > for
> > > > > > > > > > > params
> > > > > > > > > > > > again. I did set[/color][/color][/color]
ReuseParameterValuesOnRefresh="True"[color=blue]
> in[color=green]
> > a[color=darkred]
> > > > > > viewer,
> > > > > > > > but
> > > > > > > > > > it
> > > > > > > > > > > > still doesn't work. Did anyone run into this[/color][/color][/color]
problem.[color=blue][color=green][color=darkred]
> > > What's
> > > > > the
> > > > > > > > > > solution?
> > > > > > > > > > > > Please help.
> > > > > > > > > > > >
> > > > > > > > > > > > Thank you
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


Brian Bischof
Guest
 
Posts: n/a
#14: Nov 19 '05

re: Crystal Reports Cascading parameters don't get preserved between postbacks


Man, we are really going around in circles about this one. I still say it's
a browser issue and not a Crystal problem. For example, if I go into my
browser and tell it to display large fonts, I can't then send emails to
every website I visit complaining that their web designers should use
smaller fonts. On my browser I get the Open/Save dialog box that you don't
get and I also see an option to turn it off. Thus, it works fine on my
browser and it appears to be a browser controlled setting. So how could it
be a Crystal problem?

That being said, I have no clue about how the Header record effects what the
browser does. Maybe Crystal is using a Header record that makes the
Open/Save dialog box optional? Maybe their header record is only compatible
with certain browser versions and doesn't work with others? I don't know.
This whole thing is getting very frustrating and I'm determined to figure
out what the heck is going on. Having it work one way in one browser and
another way in another browser and having no idea why is driving me crazy.
Somewhere there has to be a reasonable explanation for this problem you are
having.

Brian



"LP" <lp@a.com> wrote in message
news:O$f8zSqGFHA.3312@TK2MSFTNGP10.phx.gbl...[color=blue][color=green]
> > For example, I can go into Adobe Properties
> > and turn this on and off using one of their options. When that dialog[/color][/color]
box[color=blue][color=green]
> > opens, there is a checkbox at the bottom about whether you should be
> > prompted with this box again or just open the file directly.[/color]
>
> You are tweaking Adobe settings not the browser.
>[color=green]
> >Thus, this is a
> > browser setting.[/color]
> No, it's Adobe setting.
>
> I can't find similar setting in browser or Excel Word either. And again[/color]
lets[color=blue]
> assume it's a browser setting, but that would default behavior of a[/color]
browser.[color=blue]
> So by default CR export functionality is unusable. I don't understand how[/color]
CR[color=blue]
> vendor (BusinessObjects as of today) could not see that someone would
> actually want to save exported file, not just look at it in a popup[/color]
window.[color=blue]
> When I get a chance, I'll look into how to filter HTML rendered by CR and
> modify it to enable save as functionality.
>
>
> "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
> news:%23mI5GUpGFHA.3312@TK2MSFTNGP10.phx.gbl...[color=green]
> > Ok, that's what I thought. I think that is a browser issue b/c I was[/color][/color]
able[color=blue]
> to[color=green]
> > toggle this feature on and off. For example, I can go into Adobe[/color]
> Properties[color=green]
> > and turn this on and off using one of their options. When that dialog[/color][/color]
box[color=blue][color=green]
> > opens, there is a checkbox at the bottom about whether you should be
> > prompted with this box again or just open the file directly. Thus, this[/color][/color]
is[color=blue]
> a[color=green]
> > browser setting. The header doesn't control it b/c on my computer I was[/color]
> able[color=green]
> > to get the dialog box to come up or send it directly to a browser window
> > using and Adobe Properties setting. I would search Google to see how to[/color]
> turn[color=green]
> > this on or off.
> >
> > Brian
> >
> >
> >
> > "LP" <lp@a.com> wrote in message
> > news:erPQ26oGFHA.1176@TK2MSFTNGP12.phx.gbl...[color=darkred]
> > > > Are you saying that you don't get the Open/Save dialog box or you do[/color][/color]
> get[color=green][color=darkred]
> > > it?
> > >
> > > I do NOT get it. When I click export icon it opens a popup window with
> > > Excel, or Word embedded in the window, but no toolbars no nothing and
> > > certainly NO "Save as" dialog box. If you could come up with a way to
> > > provide users with ability to "save as" what's embedded inside a[/color][/color][/color]
popup,[color=blue]
> I[color=green][color=darkred]
> > > would greatly appreciate it.
> > >
> > > Thanks
> > >
> > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
> > > news:%23vaVMUjGFHA.1096@tk2msftngp13.phx.gbl...
> > > > Are you saying that you don't get the Open/Save dialog box or you do[/color][/color]
> get[color=green][color=darkred]
> > > it?
> > > > It seems that you don't get it at all. I get it on my computer and I[/color]
> > think[color=darkred]
> > > > this is a browser issue. As I said earlier, I was able to turn
> > > > enable/disable it using a PDF option. The second issue of the[/color][/color][/color]
toolbar[color=blue][color=green]
> > not[color=darkred]
> > > > having the Save buttons could be a header issue. I'm not[/color][/color][/color]
knowledgeable[color=blue][color=green][color=darkred]
> > > about
> > > > HTML headers but it does make sense that the header tags can control[/color]
> > this.[color=darkred]
> > > I
> > > > will have to research that tomorrow.
> > > >
> > > > Brian Bischof
> > > > www.CrystalReportsBook.com
> > > >
> > > >
> > > >
> > > > "LP" <lp@a.com> wrote in message
> > > > news:%23GkSYeiGFHA.2620@tk2msftngp13.phx.gbl...
> > > > > Brian, Thanks for looking into this for me.
> > > > > I think you understand my problem. But just to be clear:
> > > > > When I click export button of a webviewer, it does open a popup[/color][/color]
> window[color=green][color=darkred]
> > > and
> > > > > loads excel, word, etc. into the window. But there's no obvious[/color][/color][/color]
way[color=blue]
> to[color=green][color=darkred]
> > > > save
> > > > > it to a local drive as a file (other than copy and paste) And,[/color][/color][/color]
yes,[color=blue][color=green]
> > you[color=darkred]
> > > > are
> > > > > right PDF is the only format with a toolbar that has "save as"[/color][/color][/color]
icon.[color=blue][color=green]
> > But[color=darkred]
> > > I
> > > > > think it's part of PDF object embedded within a browser. I also[/color][/color]
> looked[color=green][color=darkred]
> > > in
> > > > > browser settings to make it open "save as" dialog box, but could[/color][/color][/color]
not[color=blue][color=green][color=darkred]
> > > find
> > > > > anything.
> > > > > But I begin to doubt that it is a browser issue like you[/color][/color][/color]
suggesting.[color=blue]
> I[color=green][color=darkred]
> > > > think
> > > > > this behavior is controlled by HTTP header tags. I know that[/color][/color][/color]
there's[color=blue]
> a[color=green][color=darkred]
> > > > > header tag content-type (or something like that) where you can[/color][/color]
> specify[color=green][color=darkred]
> > > > > ms-excel, ms-word, etc. And there's also "attachment; filename="[/color][/color][/color]
tag[color=blue][color=green][color=darkred]
> > > where
> > > > > you can give file name and browser then will prompt you to save or[/color]
> > open[color=darkred]
> > > > that
> > > > > file. So, I do think it's the way CR not providing the right HTTP[/color]
> > header[color=darkred]
> > > > > tags for the popup is a root of the problem. So, I am thinking of
> > > > > intercepting CR rendered HTML and modifying it, but I haven't had[/color][/color]
> any[color=green][color=darkred]
> > > time
> > > > > to do anything serious like that, after all I am just building a[/color][/color]
> demo[color=green][color=darkred]
> > > app.
> > > > > Let me know if you find anything else, or if I am on the right[/color][/color]
> track.[color=green][color=darkred]
> > > > >
> > > > > Thank you again for your input.
> > > > >
> > > > >
> > > > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
> > > > > news:%23rZC84fGFHA.2524@TK2MSFTNGP15.phx.gbl...
> > > > > > Hmmm. I'm looking over all your posts. The first post you had[/color][/color][/color]
last[color=blue][color=green][color=darkred]
> > > week
> > > > > said
> > > > > > that you couldn't get the Save As dialog box to open. Instead,[/color][/color][/color]
it[color=blue][color=green][color=darkred]
> > > always
> > > > > > spawned a new window. Now it seems that when you are in the new[/color]
> > window[color=darkred]
> > > > it
> > > > > > won't allow saving the data. I assume this is a direct result of[/color][/color]
> not[color=green][color=darkred]
> > > > being
> > > > > > able to solve the first problem. So here are my comments.
> > > > > >
> > > > > > First is that if the export button doesn't open the Save/Open[/color][/color]
> dialog[color=green][color=darkred]
> > > > box,
> > > > > > then I think it's a browser issue. For example, at the bottom of[/color][/color]
> the[color=green][color=darkred]
> > > > > dialog
> > > > > > box is a checkbox telling whether it should prompt you with this[/color][/color]
> or[color=green][color=darkred]
> > > not.
> > > > I
> > > > > > played around with it for Excel and Word but this had no effect.[/color][/color][/color]
I[color=blue][color=green]
> > did[color=darkred]
> > > > > find
> > > > > > out that I can change this with Adobe inside the Adobe Internet
> > > > > preferences.
> > > > > > After fixing that I got the Open/Save box for PDFs again. I[/color][/color][/color]
looked[color=blue][color=green]
> > in[color=darkred]
> > > > > > preferences for Excel/Word and couldn't find such an option.[/color][/color][/color]
Thus,[color=blue][color=green]
> > the[color=darkred]
> > > > PDF
> > > > > > option makes me think that the browser is controlling this and[/color][/color][/color]
not[color=blue][color=green]
> > CR[color=darkred]
> > > > XI.
> > > > > > Overall, I have the Open/Save dialog popping up for all file[/color][/color][/color]
types[color=blue][color=green]
> > in[color=darkred]
> > > my
> > > > > > brower and you should be able to get them too.
> > > > > >
> > > > > > Re the Excel and Word browsers not letting you save data, this[/color][/color][/color]
is[color=blue][color=green][color=darkred]
> > > > > happening
> > > > > > with my computer as well. However, again I have to question if[/color][/color]
> this[color=green]
> > is[color=darkred]
> > > a
> > > > > > browser issue or a CR XI issue since XI is just sending the XLS[/color][/color]
> file[color=green][color=darkred]
> > > to
> > > > > the
> > > > > > browser. I'll continue to play with it b/c I don't know the[/color][/color][/color]
answer[color=blue][color=green]
> > to[color=darkred]
> > > > this
> > > > > > one yet. But I think your best bet is to look at the first issue[/color][/color]
> and[color=green][color=darkred]
> > > get
> > > > > the
> > > > > > Open/Save dialog box to pop up by tweaking the IE settings.
> > > > > >
> > > > > > HTH,
> > > > > >
> > > > > > Brian Bischof
> > > > > > www.CrystalReportsBook.com
> > > > > >
> > > > > >
> > > > > >
> > > > > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in[/color][/color][/color]
message[color=blue][color=green][color=darkred]
> > > > > > news:%236jPVYfGFHA.3472@TK2MSFTNGP09.phx.gbl...
> > > > > > > Those are good points. Let me look into the export problem of[/color][/color]
> not[color=green][color=darkred]
> > > > saving
> > > > > > to
> > > > > > > disk and see if I can get you an answer.
> > > > > > >
> > > > > > > Brian
> > > > > > >
> > > > > > >
> > > > > > > "LP" <lp@a.com> wrote in message
> > > > > > > news:%23VXeKbeGFHA.4088@TK2MSFTNGP09.phx.gbl...
> > > > > > > > >The best practice is to use the
> > > > > > > > > ReportDocument object model (unless working with[/color][/color]
> WebServices).[color=green][color=darkred]
> > > Try
> > > > > > that
> > > > > > > > and
> > > > > > > > > post the results here.
> > > > > > > >
> > > > > > > > ReportDocument did work for me for postback problems. But I[/color][/color]
> also[color=green][color=darkred]
> > > > have
> > > > > a
> > > > > > > > button that exports report to excel and then sends this file[/color][/color]
> to[color=green]
> > a[color=darkred]
> > > > > client
> > > > > > > > through HTTP. I could not get that to work with one[/color]
> > parameterized[color=darkred]
> > > > > > report.
> > > > > > > > Parameters don't seem to get cached with reportdocument. I[/color][/color]
> tried[color=green][color=darkred]
> > > my
> > > > > > > > different things, like caching actuall ParamFields object,[/color][/color]
> etc.[color=green][color=darkred]
> > > but
> > > > > > > nothing
> > > > > > > > seems to work.
> > > > > > > > I need this button because export in Crystal webviewer opens[/color][/color][/color]
a[color=blue][color=green][color=darkred]
> > > popup
> > > > > > > window
> > > > > > > > with no toolbars, so users can't save it to a file. If I[/color][/color][/color]
could[color=blue][color=green][color=darkred]
> > > find
> > > > > > > > workaround that, there would not be a need for this custom[/color]
> > export[color=darkred]
> > > > > > button.
> > > > > > > My
> > > > > > > > biggest problem with Crystal right now is very simple but[/color][/color][/color]
yet[color=blue][color=green][color=darkred]
> > > > > important
> > > > > > > > things take so much time effort to do that it becomes[/color]
> > questionanle[color=darkred]
> > > > if
> > > > > > it's
> > > > > > > > all worth it. And default behavior of Crystal is just[/color][/color][/color]
bizarre[color=blue][color=green]
> > like[color=darkred]
> > > > > > opening
> > > > > > > a
> > > > > > > > popup with no toolbars when exporting to another format, so[/color][/color]
> file[color=green][color=darkred]
> > > > can't
> > > > > > be
> > > > > > > > "save as"
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in[/color]
> > message[color=darkred]
> > > > > > > > news:%230b8BKdGFHA.2976@TK2MSFTNGP09.phx.gbl...
> > > > > > > > > I agree about the confusing API. Have you seen my existing[/color]
> > book,[color=darkred]
> > > > > > > "Crystal
> > > > > > > > > Reports .NET Programming"? It teaches you how to use the[/color][/color]
> .NET[color=green][color=darkred]
> > > > object
> > > > > > > model
> > > > > > > > > and has many tips and tricks for getting it to work.[/color][/color][/color]
Anyway,[color=blue][color=green]
> > it[color=darkred]
> > > > only
> > > > > > > > touches
> > > > > > > > > on the RAS and RDC programming a bit (I don't know if[/color][/color][/color]
using[color=blue][color=green]
> > that[color=darkred]
> > > > or
> > > > > > > not).
> > > > > > > > > I'm going to do another book which is hardcore RAS[/color][/color]
> programming[color=green][color=darkred]
> > > > > because
> > > > > > > RAS
> > > > > > > > > is extremely complicated to learn and program with.. But[/color][/color]
> that[color=green][color=darkred]
> > > > won't
> > > > > be
> > > > > > > > till
> > > > > > > > > after I finish the CR XI book I'm working on now.
> > > > > > > > >
> > > > > > > > > Anyway, to answer your question, the mistake most people[/color][/color]
> make[color=green]
> > is[color=darkred]
> > > > > that
> > > > > > > they
> > > > > > > > > mix up the viewer object model with the report object[/color][/color][/color]
model.[color=blue][color=green][color=darkred]
> > > They
> > > > > set
> > > > > > > some
> > > > > > > > > properties using one object and set other properties using[/color][/color]
> the[color=green][color=darkred]
> > > > other
> > > > > > > > object
> > > > > > > > > model. Then they get consfused when some of the properties[/color][/color]
> get[color=green][color=darkred]
> > > > > > dropped.
> > > > > > > > You
> > > > > > > > > can only use ONE object model at a time. The best practice[/color][/color]
> is[color=green]
> > to[color=darkred]
> > > > use
> > > > > > the
> > > > > > > > > ReportDocument object model (unless working with[/color][/color]
> WebServices).[color=green][color=darkred]
> > > Try
> > > > > > that
> > > > > > > > and
> > > > > > > > > post the results here.
> > > > > > > > >
> > > > > > > > > Brian Bischof
> > > > > > > > > www.CrystalReportsBook.com
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > "LP" <lp@a.com> wrote in message
> > > > > > > > > news:eS$1FzVGFHA.3612@TK2MSFTNGP09.phx.gbl...
> > > > > > > > > > Ok, I did change it to ReportDocument , and that worked[/color][/color]
> for[color=green]
> > me[color=darkred]
> > > > > even
> > > > > > > > > without
> > > > > > > > > > saving it to Session Variable. But now I am having[/color][/color][/color]
another[color=blue][color=green][color=darkred]
> > > > problem
> > > > > > > with
> > > > > > > > > > exporting. I have another button that export report to[/color][/color]
> excel[color=green][color=darkred]
> > > and
> > > > > > sends
> > > > > > > a
> > > > > > > > > > file to a client, so now one parameterized report[/color][/color][/color]
doesn't[color=blue][color=green][color=darkred]
> > > work.
> > > > I
> > > > > > > tried
> > > > > > > > > > saving reportDoc and it ParameterFields to session and
> > > > retrieving,
> > > > > > but
> > > > > > > > > > nothing works.
> > > > > > > > > > I think CR is a very good product, very sharp looking[/color]
> > reports[color=darkred]
> > > > > (when
> > > > > > > you
> > > > > > > > > get
> > > > > > > > > > them to work), very slick designer especially version[/color][/color][/color]
XI.[color=blue][color=green]
> > But[color=darkred]
> > > > > their
> > > > > > > API
> > > > > > > > > and
> > > > > > > > > > object hierarchy is terribly confusing and inconsistent[/color][/color]
> with[color=green][color=darkred]
> > > > what
> > > > > > one
> > > > > > > > > would
> > > > > > > > > > expect from .NET friendly product, I haven't seen any[/color][/color][/color]
good[color=blue][color=green][color=darkred]
> > > > > > > documentation
> > > > > > > > > on
> > > > > > > > > > their APIs.
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > "LP" <lp@a.com> wrote in message
> > > > > > > > > > news:ezCf58UGFHA.1456@TK2MSFTNGP09.phx.gbl...
> > > > > > > > > > > Brian, I am not using ReportDocument object, I am[/color][/color]
> setting[color=green][color=darkred]
> > > > > viewers
> > > > > > > > > > > ReportSource to a report file directly:
> > > > > > > > > > >
> > > > > > > > > > > crViewer.ReportSource = Server.MapPath("Reports/" &
> > > > reportName)
> > > > > > > > > > >
> > > > > > > > > > > What should I do in this case?
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > Thanks
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote[/color][/color]
> in[color=green][color=darkred]
> > > > > message
> > > > > > > > > > > news:eQZxtDUGFHA.548@TK2MSFTNGP14.phx.gbl...
> > > > > > > > > > > > You have to cache the report object. Save the report
> > > object
> > > > to
> > > > > > the
> > > > > > >
> > > > > > > > > > > Session()
> > > > > > > > > > > > collection and then restore it upon page refresh (be[/color]
> > sure[color=darkred]
> > > to
> > > > > > > > explicity
> > > > > > > > > > > cast
> > > > > > > > > > > > it as a ReportDocument). ASP.NET reports do all[/color][/color][/color]
kinds[color=blue]
> of[color=green][color=darkred]
> > > > funny
> > > > > > > > things
> > > > > > > > > if
> > > > > > > > > > > you
> > > > > > > > > > > > don't save them between page refreshes.
> > > > > > > > > > > >
> > > > > > > > > > > > HTH,
> > > > > > > > > > > >
> > > > > > > > > > > > Brian Bischof
> > > > > > > > > > > > www.CrystalReportsBook.com
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > "LP" <lp@a.com> wrote in message
> > > > > > > > > > > > news:OgS0FtTGFHA.2876@TK2MSFTNGP12.phx.gbl...
> > > > > > > > > > > > > I am using (trying to) CR version XI, cascading
> > > parameters
> > > > > > > feature
> > > > > > > > > > works
> > > > > > > > > > > > it
> > > > > > > > > > > > > asks user to enter params. But if page is[/color][/color]
> resubmitted.[color=green][color=darkred]
> > > It
> > > > > > > prompts
> > > > > > > > > for
> > > > > > > > > > > > params
> > > > > > > > > > > > > again. I did set[/color][/color]
> ReuseParameterValuesOnRefresh="True"[color=green]
> > in[color=darkred]
> > > a
> > > > > > > viewer,
> > > > > > > > > but
> > > > > > > > > > > it
> > > > > > > > > > > > > still doesn't work. Did anyone run into this[/color][/color]
> problem.[color=green][color=darkred]
> > > > What's
> > > > > > the
> > > > > > > > > > > solution?
> > > > > > > > > > > > > Please help.
> > > > > > > > > > > > >
> > > > > > > > > > > > > Thank you
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


LP
Guest
 
Posts: n/a
#15: Nov 19 '05

re: Crystal Reports Cascading parameters don't get preserved between postbacks



Brian, I am not dismissing that it could be a browser setting. If you or
someone else finds where to change this setting, that would be great. Are
you saying that you get Open/Save dialog box for all formats; MS Excel, Word
not just PDF? If it's true then what Version of browser are you using?
Thanks

"Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
news:%23HXLxMrGFHA.3504@TK2MSFTNGP10.phx.gbl...[color=blue]
> Man, we are really going around in circles about this one. I still say[/color]
it's[color=blue]
> a browser issue and not a Crystal problem. For example, if I go into my
> browser and tell it to display large fonts, I can't then send emails to
> every website I visit complaining that their web designers should use
> smaller fonts. On my browser I get the Open/Save dialog box that you don't
> get and I also see an option to turn it off. Thus, it works fine on my
> browser and it appears to be a browser controlled setting. So how could it
> be a Crystal problem?
>
> That being said, I have no clue about how the Header record effects what[/color]
the[color=blue]
> browser does. Maybe Crystal is using a Header record that makes the
> Open/Save dialog box optional? Maybe their header record is only[/color]
compatible[color=blue]
> with certain browser versions and doesn't work with others? I don't know.
> This whole thing is getting very frustrating and I'm determined to figure
> out what the heck is going on. Having it work one way in one browser and
> another way in another browser and having no idea why is driving me crazy.
> Somewhere there has to be a reasonable explanation for this problem you[/color]
are[color=blue]
> having.
>
> Brian
>
>
>
> "LP" <lp@a.com> wrote in message
> news:O$f8zSqGFHA.3312@TK2MSFTNGP10.phx.gbl...[color=green][color=darkred]
> > > For example, I can go into Adobe Properties
> > > and turn this on and off using one of their options. When that dialog[/color][/color]
> box[color=green][color=darkred]
> > > opens, there is a checkbox at the bottom about whether you should be
> > > prompted with this box again or just open the file directly.[/color]
> >
> > You are tweaking Adobe settings not the browser.
> >[color=darkred]
> > >Thus, this is a
> > > browser setting.[/color]
> > No, it's Adobe setting.
> >
> > I can't find similar setting in browser or Excel Word either. And again[/color]
> lets[color=green]
> > assume it's a browser setting, but that would default behavior of a[/color]
> browser.[color=green]
> > So by default CR export functionality is unusable. I don't understand[/color][/color]
how[color=blue]
> CR[color=green]
> > vendor (BusinessObjects as of today) could not see that someone would
> > actually want to save exported file, not just look at it in a popup[/color]
> window.[color=green]
> > When I get a chance, I'll look into how to filter HTML rendered by CR[/color][/color]
and[color=blue][color=green]
> > modify it to enable save as functionality.
> >
> >
> > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
> > news:%23mI5GUpGFHA.3312@TK2MSFTNGP10.phx.gbl...[color=darkred]
> > > Ok, that's what I thought. I think that is a browser issue b/c I was[/color][/color]
> able[color=green]
> > to[color=darkred]
> > > toggle this feature on and off. For example, I can go into Adobe[/color]
> > Properties[color=darkred]
> > > and turn this on and off using one of their options. When that dialog[/color][/color]
> box[color=green][color=darkred]
> > > opens, there is a checkbox at the bottom about whether you should be
> > > prompted with this box again or just open the file directly. Thus,[/color][/color][/color]
this[color=blue]
> is[color=green]
> > a[color=darkred]
> > > browser setting. The header doesn't control it b/c on my computer I[/color][/color][/color]
was[color=blue][color=green]
> > able[color=darkred]
> > > to get the dialog box to come up or send it directly to a browser[/color][/color][/color]
window[color=blue][color=green][color=darkred]
> > > using and Adobe Properties setting. I would search Google to see how[/color][/color][/color]
to[color=blue][color=green]
> > turn[color=darkred]
> > > this on or off.
> > >
> > > Brian
> > >
> > >
> > >
> > > "LP" <lp@a.com> wrote in message
> > > news:erPQ26oGFHA.1176@TK2MSFTNGP12.phx.gbl...
> > > > > Are you saying that you don't get the Open/Save dialog box or you[/color][/color][/color]
do[color=blue][color=green]
> > get[color=darkred]
> > > > it?
> > > >
> > > > I do NOT get it. When I click export icon it opens a popup window[/color][/color][/color]
with[color=blue][color=green][color=darkred]
> > > > Excel, or Word embedded in the window, but no toolbars no nothing[/color][/color][/color]
and[color=blue][color=green][color=darkred]
> > > > certainly NO "Save as" dialog box. If you could come up with a way[/color][/color][/color]
to[color=blue][color=green][color=darkred]
> > > > provide users with ability to "save as" what's embedded inside a[/color][/color]
> popup,[color=green]
> > I[color=darkred]
> > > > would greatly appreciate it.
> > > >
> > > > Thanks
> > > >
> > > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
> > > > news:%23vaVMUjGFHA.1096@tk2msftngp13.phx.gbl...
> > > > > Are you saying that you don't get the Open/Save dialog box or you[/color][/color][/color]
do[color=blue][color=green]
> > get[color=darkred]
> > > > it?
> > > > > It seems that you don't get it at all. I get it on my computer and[/color][/color][/color]
I[color=blue][color=green][color=darkred]
> > > think
> > > > > this is a browser issue. As I said earlier, I was able to turn
> > > > > enable/disable it using a PDF option. The second issue of the[/color][/color]
> toolbar[color=green][color=darkred]
> > > not
> > > > > having the Save buttons could be a header issue. I'm not[/color][/color]
> knowledgeable[color=green][color=darkred]
> > > > about
> > > > > HTML headers but it does make sense that the header tags can[/color][/color][/color]
control[color=blue][color=green][color=darkred]
> > > this.
> > > > I
> > > > > will have to research that tomorrow.
> > > > >
> > > > > Brian Bischof
> > > > > www.CrystalReportsBook.com
> > > > >
> > > > >
> > > > >
> > > > > "LP" <lp@a.com> wrote in message
> > > > > news:%23GkSYeiGFHA.2620@tk2msftngp13.phx.gbl...
> > > > > > Brian, Thanks for looking into this for me.
> > > > > > I think you understand my problem. But just to be clear:
> > > > > > When I click export button of a webviewer, it does open a popup[/color]
> > window[color=darkred]
> > > > and
> > > > > > loads excel, word, etc. into the window. But there's no obvious[/color][/color]
> way[color=green]
> > to[color=darkred]
> > > > > save
> > > > > > it to a local drive as a file (other than copy and paste) And,[/color][/color]
> yes,[color=green][color=darkred]
> > > you
> > > > > are
> > > > > > right PDF is the only format with a toolbar that has "save as"[/color][/color]
> icon.[color=green][color=darkred]
> > > But
> > > > I
> > > > > > think it's part of PDF object embedded within a browser. I also[/color]
> > looked[color=darkred]
> > > > in
> > > > > > browser settings to make it open "save as" dialog box, but could[/color][/color]
> not[color=green][color=darkred]
> > > > find
> > > > > > anything.
> > > > > > But I begin to doubt that it is a browser issue like you[/color][/color]
> suggesting.[color=green]
> > I[color=darkred]
> > > > > think
> > > > > > this behavior is controlled by HTTP header tags. I know that[/color][/color]
> there's[color=green]
> > a[color=darkred]
> > > > > > header tag content-type (or something like that) where you can[/color]
> > specify[color=darkred]
> > > > > > ms-excel, ms-word, etc. And there's also "attachment; filename="[/color][/color]
> tag[color=green][color=darkred]
> > > > where
> > > > > > you can give file name and browser then will prompt you to save[/color][/color][/color]
or[color=blue][color=green][color=darkred]
> > > open
> > > > > that
> > > > > > file. So, I do think it's the way CR not providing the right[/color][/color][/color]
HTTP[color=blue][color=green][color=darkred]
> > > header
> > > > > > tags for the popup is a root of the problem. So, I am thinking[/color][/color][/color]
of[color=blue][color=green][color=darkred]
> > > > > > intercepting CR rendered HTML and modifying it, but I haven't[/color][/color][/color]
had[color=blue][color=green]
> > any[color=darkred]
> > > > time
> > > > > > to do anything serious like that, after all I am just building a[/color]
> > demo[color=darkred]
> > > > app.
> > > > > > Let me know if you find anything else, or if I am on the right[/color]
> > track.[color=darkred]
> > > > > >
> > > > > > Thank you again for your input.
> > > > > >
> > > > > >
> > > > > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in[/color][/color][/color]
message[color=blue][color=green][color=darkred]
> > > > > > news:%23rZC84fGFHA.2524@TK2MSFTNGP15.phx.gbl...
> > > > > > > Hmmm. I'm looking over all your posts. The first post you had[/color][/color]
> last[color=green][color=darkred]
> > > > week
> > > > > > said
> > > > > > > that you couldn't get the Save As dialog box to open. Instead,[/color][/color]
> it[color=green][color=darkred]
> > > > always
> > > > > > > spawned a new window. Now it seems that when you are in the[/color][/color][/color]
new[color=blue][color=green][color=darkred]
> > > window
> > > > > it
> > > > > > > won't allow saving the data. I assume this is a direct result[/color][/color][/color]
of[color=blue][color=green]
> > not[color=darkred]
> > > > > being
> > > > > > > able to solve the first problem. So here are my comments.
> > > > > > >
> > > > > > > First is that if the export button doesn't open the Save/Open[/color]
> > dialog[color=darkred]
> > > > > box,
> > > > > > > then I think it's a browser issue. For example, at the bottom[/color][/color][/color]
of[color=blue][color=green]
> > the[color=darkred]
> > > > > > dialog
> > > > > > > box is a checkbox telling whether it should prompt you with[/color][/color][/color]
this[color=blue][color=green]
> > or[color=darkred]
> > > > not.
> > > > > I
> > > > > > > played around with it for Excel and Word but this had no[/color][/color][/color]
effect.[color=blue]
> I[color=green][color=darkred]
> > > did
> > > > > > find
> > > > > > > out that I can change this with Adobe inside the Adobe[/color][/color][/color]
Internet[color=blue][color=green][color=darkred]
> > > > > > preferences.
> > > > > > > After fixing that I got the Open/Save box for PDFs again. I[/color][/color]
> looked[color=green][color=darkred]
> > > in
> > > > > > > preferences for Excel/Word and couldn't find such an option.[/color][/color]
> Thus,[color=green][color=darkred]
> > > the
> > > > > PDF
> > > > > > > option makes me think that the browser is controlling this and[/color][/color]
> not[color=green][color=darkred]
> > > CR
> > > > > XI.
> > > > > > > Overall, I have the Open/Save dialog popping up for all file[/color][/color]
> types[color=green][color=darkred]
> > > in
> > > > my
> > > > > > > brower and you should be able to get them too.
> > > > > > >
> > > > > > > Re the Excel and Word browsers not letting you save data, this[/color][/color]
> is[color=green][color=darkred]
> > > > > > happening
> > > > > > > with my computer as well. However, again I have to question if[/color]
> > this[color=darkred]
> > > is
> > > > a
> > > > > > > browser issue or a CR XI issue since XI is just sending the[/color][/color][/color]
XLS[color=blue][color=green]
> > file[color=darkred]
> > > > to
> > > > > > the
> > > > > > > browser. I'll continue to play with it b/c I don't know the[/color][/color]
> answer[color=green][color=darkred]
> > > to
> > > > > this
> > > > > > > one yet. But I think your best bet is to look at the first[/color][/color][/color]
issue[color=blue][color=green]
> > and[color=darkred]
> > > > get
> > > > > > the
> > > > > > > Open/Save dialog box to pop up by tweaking the IE settings.
> > > > > > >
> > > > > > > HTH,
> > > > > > >
> > > > > > > Brian Bischof
> > > > > > > www.CrystalReportsBook.com
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in[/color][/color]
> message[color=green][color=darkred]
> > > > > > > news:%236jPVYfGFHA.3472@TK2MSFTNGP09.phx.gbl...
> > > > > > > > Those are good points. Let me look into the export problem[/color][/color][/color]
of[color=blue][color=green]
> > not[color=darkred]
> > > > > saving
> > > > > > > to
> > > > > > > > disk and see if I can get you an answer.
> > > > > > > >
> > > > > > > > Brian
> > > > > > > >
> > > > > > > >
> > > > > > > > "LP" <lp@a.com> wrote in message
> > > > > > > > news:%23VXeKbeGFHA.4088@TK2MSFTNGP09.phx.gbl...
> > > > > > > > > >The best practice is to use the
> > > > > > > > > > ReportDocument object model (unless working with[/color]
> > WebServices).[color=darkred]
> > > > Try
> > > > > > > that
> > > > > > > > > and
> > > > > > > > > > post the results here.
> > > > > > > > >
> > > > > > > > > ReportDocument did work for me for postback problems. But[/color][/color][/color]
I[color=blue][color=green]
> > also[color=darkred]
> > > > > have
> > > > > > a
> > > > > > > > > button that exports report to excel and then sends this[/color][/color][/color]
file[color=blue][color=green]
> > to[color=darkred]
> > > a
> > > > > > client
> > > > > > > > > through HTTP. I could not get that to work with one
> > > parameterized
> > > > > > > report.
> > > > > > > > > Parameters don't seem to get cached with reportdocument. I[/color]
> > tried[color=darkred]
> > > > my
> > > > > > > > > different things, like caching actuall ParamFields object,[/color]
> > etc.[color=darkred]
> > > > but
> > > > > > > > nothing
> > > > > > > > > seems to work.
> > > > > > > > > I need this button because export in Crystal webviewer[/color][/color][/color]
opens[color=blue]
> a[color=green][color=darkred]
> > > > popup
> > > > > > > > window
> > > > > > > > > with no toolbars, so users can't save it to a file. If I[/color][/color]
> could[color=green][color=darkred]
> > > > find
> > > > > > > > > workaround that, there would not be a need for this custom
> > > export
> > > > > > > button.
> > > > > > > > My
> > > > > > > > > biggest problem with Crystal right now is very simple but[/color][/color]
> yet[color=green][color=darkred]
> > > > > > important
> > > > > > > > > things take so much time effort to do that it becomes
> > > questionanle
> > > > > if
> > > > > > > it's
> > > > > > > > > all worth it. And default behavior of Crystal is just[/color][/color]
> bizarre[color=green][color=darkred]
> > > like
> > > > > > > opening
> > > > > > > > a
> > > > > > > > > popup with no toolbars when exporting to another format,[/color][/color][/color]
so[color=blue][color=green]
> > file[color=darkred]
> > > > > can't
> > > > > > > be
> > > > > > > > > "save as"
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in
> > > message
> > > > > > > > > news:%230b8BKdGFHA.2976@TK2MSFTNGP09.phx.gbl...
> > > > > > > > > > I agree about the confusing API. Have you seen my[/color][/color][/color]
existing[color=blue][color=green][color=darkred]
> > > book,
> > > > > > > > "Crystal
> > > > > > > > > > Reports .NET Programming"? It teaches you how to use the[/color]
> > .NET[color=darkred]
> > > > > object
> > > > > > > > model
> > > > > > > > > > and has many tips and tricks for getting it to work.[/color][/color]
> Anyway,[color=green][color=darkred]
> > > it
> > > > > only
> > > > > > > > > touches
> > > > > > > > > > on the RAS and RDC programming a bit (I don't know if[/color][/color]
> using[color=green][color=darkred]
> > > that
> > > > > or
> > > > > > > > not).
> > > > > > > > > > I'm going to do another book which is hardcore RAS[/color]
> > programming[color=darkred]
> > > > > > because
> > > > > > > > RAS
> > > > > > > > > > is extremely complicated to learn and program with.. But[/color]
> > that[color=darkred]
> > > > > won't
> > > > > > be
> > > > > > > > > till
> > > > > > > > > > after I finish the CR XI book I'm working on now.
> > > > > > > > > >
> > > > > > > > > > Anyway, to answer your question, the mistake most people[/color]
> > make[color=darkred]
> > > is
> > > > > > that
> > > > > > > > they
> > > > > > > > > > mix up the viewer object model with the report object[/color][/color]
> model.[color=green][color=darkred]
> > > > They
> > > > > > set
> > > > > > > > some
> > > > > > > > > > properties using one object and set other properties[/color][/color][/color]
using[color=blue][color=green]
> > the[color=darkred]
> > > > > other
> > > > > > > > > object
> > > > > > > > > > model. Then they get consfused when some of the[/color][/color][/color]
properties[color=blue][color=green]
> > get[color=darkred]
> > > > > > > dropped.
> > > > > > > > > You
> > > > > > > > > > can only use ONE object model at a time. The best[/color][/color][/color]
practice[color=blue][color=green]
> > is[color=darkred]
> > > to
> > > > > use
> > > > > > > the
> > > > > > > > > > ReportDocument object model (unless working with[/color]
> > WebServices).[color=darkred]
> > > > Try
> > > > > > > that
> > > > > > > > > and
> > > > > > > > > > post the results here.
> > > > > > > > > >
> > > > > > > > > > Brian Bischof
> > > > > > > > > > www.CrystalReportsBook.com
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > "LP" <lp@a.com> wrote in message
> > > > > > > > > > news:eS$1FzVGFHA.3612@TK2MSFTNGP09.phx.gbl...
> > > > > > > > > > > Ok, I did change it to ReportDocument , and that[/color][/color][/color]
worked[color=blue][color=green]
> > for[color=darkred]
> > > me
> > > > > > even
> > > > > > > > > > without
> > > > > > > > > > > saving it to Session Variable. But now I am having[/color][/color]
> another[color=green][color=darkred]
> > > > > problem
> > > > > > > > with
> > > > > > > > > > > exporting. I have another button that export report to[/color]
> > excel[color=darkred]
> > > > and
> > > > > > > sends
> > > > > > > > a
> > > > > > > > > > > file to a client, so now one parameterized report[/color][/color]
> doesn't[color=green][color=darkred]
> > > > work.
> > > > > I
> > > > > > > > tried
> > > > > > > > > > > saving reportDoc and it ParameterFields to session and
> > > > > retrieving,
> > > > > > > but
> > > > > > > > > > > nothing works.
> > > > > > > > > > > I think CR is a very good product, very sharp looking
> > > reports
> > > > > > (when
> > > > > > > > you
> > > > > > > > > > get
> > > > > > > > > > > them to work), very slick designer especially version[/color][/color]
> XI.[color=green][color=darkred]
> > > But
> > > > > > their
> > > > > > > > API
> > > > > > > > > > and
> > > > > > > > > > > object hierarchy is terribly confusing and[/color][/color][/color]
inconsistent[color=blue][color=green]
> > with[color=darkred]
> > > > > what
> > > > > > > one
> > > > > > > > > > would
> > > > > > > > > > > expect from .NET friendly product, I haven't seen any[/color][/color]
> good[color=green][color=darkred]
> > > > > > > > documentation
> > > > > > > > > > on
> > > > > > > > > > > their APIs.
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > "LP" <lp@a.com> wrote in message
> > > > > > > > > > > news:ezCf58UGFHA.1456@TK2MSFTNGP09.phx.gbl...
> > > > > > > > > > > > Brian, I am not using ReportDocument object, I am[/color]
> > setting[color=darkred]
> > > > > > viewers
> > > > > > > > > > > > ReportSource to a report file directly:
> > > > > > > > > > > >
> > > > > > > > > > > > crViewer.ReportSource = Server.MapPath("Reports/" &
> > > > > reportName)
> > > > > > > > > > > >
> > > > > > > > > > > > What should I do in this case?
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > Thanks
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > "Brian Bischof" <Brian@NoSpamBischofSystems.com>[/color][/color][/color]
wrote[color=blue][color=green]
> > in[color=darkred]
> > > > > > message
> > > > > > > > > > > > news:eQZxtDUGFHA.548@TK2MSFTNGP14.phx.gbl...
> > > > > > > > > > > > > You have to cache the report object. Save the[/color][/color][/color]
report[color=blue][color=green][color=darkred]
> > > > object
> > > > > to
> > > > > > > the
> > > > > > > >
> > > > > > > > > > > > Session()
> > > > > > > > > > > > > collection and then restore it upon page refresh[/color][/color][/color]
(be[color=blue][color=green][color=darkred]
> > > sure
> > > > to
> > > > > > > > > explicity
> > > > > > > > > > > > cast
> > > > > > > > > > > > > it as a ReportDocument). ASP.NET reports do all[/color][/color]
> kinds[color=green]
> > of[color=darkred]
> > > > > funny
> > > > > > > > > things
> > > > > > > > > > if
> > > > > > > > > > > > you
> > > > > > > > > > > > > don't save them between page refreshes.
> > > > > > > > > > > > >
> > > > > > > > > > > > > HTH,
> > > > > > > > > > > > >
> > > > > > > > > > > > > Brian Bischof
> > > > > > > > > > > > > www.CrystalReportsBook.com
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > > "LP" <lp@a.com> wrote in message
> > > > > > > > > > > > > news:OgS0FtTGFHA.2876@TK2MSFTNGP12.phx.gbl...
> > > > > > > > > > > > > > I am using (trying to) CR version XI, cascading
> > > > parameters
> > > > > > > > feature
> > > > > > > > > > > works
> > > > > > > > > > > > > it
> > > > > > > > > > > > > > asks user to enter params. But if page is[/color]
> > resubmitted.[color=darkred]
> > > > It
> > > > > > > > prompts
> > > > > > > > > > for
> > > > > > > > > > > > > params
> > > > > > > > > > > > > > again. I did set[/color]
> > ReuseParameterValuesOnRefresh="True"[color=darkred]
> > > in
> > > > a
> > > > > > > > viewer,
> > > > > > > > > > but
> > > > > > > > > > > > it
> > > > > > > > > > > > > > still doesn't work. Did anyone run into this[/color]
> > problem.[color=darkred]
> > > > > What's
> > > > > > > the
> > > > > > > > > > > > solution?
> > > > > > > > > > > > > > Please help.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Thank you
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


Rob Diamant
Guest
 
Posts: n/a
#16: Nov 19 '05

re: Crystal Reports Cascading parameters don't get preserved between postbacks


Guys,

I have been following this thread for a while (it's entertaining, I can't
wait for the finish) and was wondering what code is behind LP's Export
Button that may be different then Brian's. Maybe you guys should compare.

Rob

"Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
news:%23HXLxMrGFHA.3504@TK2MSFTNGP10.phx.gbl...[color=blue]
> Man, we are really going around in circles about this one. I still say
> it's
> a browser issue and not a Crystal problem. For example, if I go into my
> browser and tell it to display large fonts, I can't then send emails to
> every website I visit complaining that their web designers should use
> smaller fonts. On my browser I get the Open/Save dialog box that you don't
> get and I also see an option to turn it off. Thus, it works fine on my
> browser and it appears to be a browser controlled setting. So how could it
> be a Crystal problem?
>
> That being said, I have no clue about how the Header record effects what
> the
> browser does. Maybe Crystal is using a Header record that makes the
> Open/Save dialog box optional? Maybe their header record is only
> compatible
> with certain browser versions and doesn't work with others? I don't know.
> This whole thing is getting very frustrating and I'm determined to figure
> out what the heck is going on. Having it work one way in one browser and
> another way in another browser and having no idea why is driving me crazy.
> Somewhere there has to be a reasonable explanation for this problem you
> are
> having.
>
> Brian
>
>
>
> "LP" <lp@a.com> wrote in message
> news:O$f8zSqGFHA.3312@TK2MSFTNGP10.phx.gbl...[color=green][color=darkred]
>> > For example, I can go into Adobe Properties
>> > and turn this on and off using one of their options. When that dialog[/color][/color]
> box[color=green][color=darkred]
>> > opens, there is a checkbox at the bottom about whether you should be
>> > prompted with this box again or just open the file directly.[/color]
>>
>> You are tweaking Adobe settings not the browser.
>>[color=darkred]
>> >Thus, this is a
>> > browser setting.[/color]
>> No, it's Adobe setting.
>>
>> I can't find similar setting in browser or Excel Word either. And again[/color]
> lets[color=green]
>> assume it's a browser setting, but that would default behavior of a[/color]
> browser.[color=green]
>> So by default CR export functionality is unusable. I don't understand how[/color]
> CR[color=green]
>> vendor (BusinessObjects as of today) could not see that someone would
>> actually want to save exported file, not just look at it in a popup[/color]
> window.[color=green]
>> When I get a chance, I'll look into how to filter HTML rendered by CR and
>> modify it to enable save as functionality.
>>
>>
>> "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
>> news:%23mI5GUpGFHA.3312@TK2MSFTNGP10.phx.gbl...[color=darkred]
>> > Ok, that's what I thought. I think that is a browser issue b/c I was[/color][/color]
> able[color=green]
>> to[color=darkred]
>> > toggle this feature on and off. For example, I can go into Adobe[/color]
>> Properties[color=darkred]
>> > and turn this on and off using one of their options. When that dialog[/color][/color]
> box[color=green][color=darkred]
>> > opens, there is a checkbox at the bottom about whether you should be
>> > prompted with this box again or just open the file directly. Thus, this[/color][/color]
> is[color=green]
>> a[color=darkred]
>> > browser setting. The header doesn't control it b/c on my computer I was[/color]
>> able[color=darkred]
>> > to get the dialog box to come up or send it directly to a browser
>> > window
>> > using and Adobe Properties setting. I would search Google to see how to[/color]
>> turn[color=darkred]
>> > this on or off.
>> >
>> > Brian
>> >
>> >
>> >
>> > "LP" <lp@a.com> wrote in message
>> > news:erPQ26oGFHA.1176@TK2MSFTNGP12.phx.gbl...
>> > > > Are you saying that you don't get the Open/Save dialog box or you
>> > > > do[/color]
>> get[color=darkred]
>> > > it?
>> > >
>> > > I do NOT get it. When I click export icon it opens a popup window
>> > > with
>> > > Excel, or Word embedded in the window, but no toolbars no nothing and
>> > > certainly NO "Save as" dialog box. If you could come up with a way to
>> > > provide users with ability to "save as" what's embedded inside a[/color][/color]
> popup,[color=green]
>> I[color=darkred]
>> > > would greatly appreciate it.
>> > >
>> > > Thanks
>> > >
>> > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
>> > > news:%23vaVMUjGFHA.1096@tk2msftngp13.phx.gbl...
>> > > > Are you saying that you don't get the Open/Save dialog box or you
>> > > > do[/color]
>> get[color=darkred]
>> > > it?
>> > > > It seems that you don't get it at all. I get it on my computer and
>> > > > I
>> > think
>> > > > this is a browser issue. As I said earlier, I was able to turn
>> > > > enable/disable it using a PDF option. The second issue of the[/color][/color]
> toolbar[color=green][color=darkred]
>> > not
>> > > > having the Save buttons could be a header issue. I'm not[/color][/color]
> knowledgeable[color=green][color=darkred]
>> > > about
>> > > > HTML headers but it does make sense that the header tags can
>> > > > control
>> > this.
>> > > I
>> > > > will have to research that tomorrow.
>> > > >
>> > > > Brian Bischof
>> > > > www.CrystalReportsBook.com
>> > > >
>> > > >
>> > > >
>> > > > "LP" <lp@a.com> wrote in message
>> > > > news:%23GkSYeiGFHA.2620@tk2msftngp13.phx.gbl...
>> > > > > Brian, Thanks for looking into this for me.
>> > > > > I think you understand my problem. But just to be clear:
>> > > > > When I click export button of a webviewer, it does open a popup[/color]
>> window[color=darkred]
>> > > and
>> > > > > loads excel, word, etc. into the window. But there's no obvious[/color][/color]
> way[color=green]
>> to[color=darkred]
>> > > > save
>> > > > > it to a local drive as a file (other than copy and paste) And,[/color][/color]
> yes,[color=green][color=darkred]
>> > you
>> > > > are
>> > > > > right PDF is the only format with a toolbar that has "save as"[/color][/color]
> icon.[color=green][color=darkred]
>> > But
>> > > I
>> > > > > think it's part of PDF object embedded within a browser. I also[/color]
>> looked[color=darkred]
>> > > in
>> > > > > browser settings to make it open "save as" dialog box, but could[/color][/color]
> not[color=green][color=darkred]
>> > > find
>> > > > > anything.
>> > > > > But I begin to doubt that it is a browser issue like you[/color][/color]
> suggesting.[color=green]
>> I[color=darkred]
>> > > > think
>> > > > > this behavior is controlled by HTTP header tags. I know that[/color][/color]
> there's[color=green]
>> a[color=darkred]
>> > > > > header tag content-type (or something like that) where you can[/color]
>> specify[color=darkred]
>> > > > > ms-excel, ms-word, etc. And there's also "attachment; filename="[/color][/color]
> tag[color=green][color=darkred]
>> > > where
>> > > > > you can give file name and browser then will prompt you to save
>> > > > > or
>> > open
>> > > > that
>> > > > > file. So, I do think it's the way CR not providing the right HTTP
>> > header
>> > > > > tags for the popup is a root of the problem. So, I am thinking of
>> > > > > intercepting CR rendered HTML and modifying it, but I haven't had[/color]
>> any[color=darkred]
>> > > time
>> > > > > to do anything serious like that, after all I am just building a[/color]
>> demo[color=darkred]
>> > > app.
>> > > > > Let me know if you find anything else, or if I am on the right[/color]
>> track.[color=darkred]
>> > > > >
>> > > > > Thank you again for your input.
>> > > > >
>> > > > >
>> > > > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
>> > > > > news:%23rZC84fGFHA.2524@TK2MSFTNGP15.phx.gbl...
>> > > > > > Hmmm. I'm looking over all your posts. The first post you had[/color][/color]
> last[color=green][color=darkred]
>> > > week
>> > > > > said
>> > > > > > that you couldn't get the Save As dialog box to open. Instead,[/color][/color]
> it[color=green][color=darkred]
>> > > always
>> > > > > > spawned a new window. Now it seems that when you are in the new
>> > window
>> > > > it
>> > > > > > won't allow saving the data. I assume this is a direct result
>> > > > > > of[/color]
>> not[color=darkred]
>> > > > being
>> > > > > > able to solve the first problem. So here are my comments.
>> > > > > >
>> > > > > > First is that if the export button doesn't open the Save/Open[/color]
>> dialog[color=darkred]
>> > > > box,
>> > > > > > then I think it's a browser issue. For example, at the bottom
>> > > > > > of[/color]
>> the[color=darkred]
>> > > > > dialog
>> > > > > > box is a checkbox telling whether it should prompt you with
>> > > > > > this[/color]
>> or[color=darkred]
>> > > not.
>> > > > I
>> > > > > > played around with it for Excel and Word but this had no
>> > > > > > effect.[/color][/color]
> I[color=green][color=darkred]
>> > did
>> > > > > find
>> > > > > > out that I can change this with Adobe inside the Adobe Internet
>> > > > > preferences.
>> > > > > > After fixing that I got the Open/Save box for PDFs again. I[/color][/color]
> looked[color=green][color=darkred]
>> > in
>> > > > > > preferences for Excel/Word and couldn't find such an option.[/color][/color]
> Thus,[color=green][color=darkred]
>> > the
>> > > > PDF
>> > > > > > option makes me think that the browser is controlling this and[/color][/color]
> not[color=green][color=darkred]
>> > CR
>> > > > XI.
>> > > > > > Overall, I have the Open/Save dialog popping up for all file[/color][/color]
> types[color=green][color=darkred]
>> > in
>> > > my
>> > > > > > brower and you should be able to get them too.
>> > > > > >
>> > > > > > Re the Excel and Word browsers not letting you save data, this[/color][/color]
> is[color=green][color=darkred]
>> > > > > happening
>> > > > > > with my computer as well. However, again I have to question if[/color]
>> this[color=darkred]
>> > is
>> > > a
>> > > > > > browser issue or a CR XI issue since XI is just sending the XLS[/color]
>> file[color=darkred]
>> > > to
>> > > > > the
>> > > > > > browser. I'll continue to play with it b/c I don't know the[/color][/color]
> answer[color=green][color=darkred]
>> > to
>> > > > this
>> > > > > > one yet. But I think your best bet is to look at the first
>> > > > > > issue[/color]
>> and[color=darkred]
>> > > get
>> > > > > the
>> > > > > > Open/Save dialog box to pop up by tweaking the IE settings.
>> > > > > >
>> > > > > > HTH,
>> > > > > >
>> > > > > > Brian Bischof
>> > > > > > www.CrystalReportsBook.com
>> > > > > >
>> > > > > >
>> > > > > >
>> > > > > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in[/color][/color]
> message[color=green][color=darkred]
>> > > > > > news:%236jPVYfGFHA.3472@TK2MSFTNGP09.phx.gbl...
>> > > > > > > Those are good points. Let me look into the export problem of[/color]
>> not[color=darkred]
>> > > > saving
>> > > > > > to
>> > > > > > > disk and see if I can get you an answer.
>> > > > > > >
>> > > > > > > Brian
>> > > > > > >
>> > > > > > >
>> > > > > > > "LP" <lp@a.com> wrote in message
>> > > > > > > news:%23VXeKbeGFHA.4088@TK2MSFTNGP09.phx.gbl...
>> > > > > > > > >The best practice is to use the
>> > > > > > > > > ReportDocument object model (unless working with[/color]
>> WebServices).[color=darkred]
>> > > Try
>> > > > > > that
>> > > > > > > > and
>> > > > > > > > > post the results here.
>> > > > > > > >
>> > > > > > > > ReportDocument did work for me for postback problems. But I[/color]
>> also[color=darkred]
>> > > > have
>> > > > > a
>> > > > > > > > button that exports report to excel and then sends this
>> > > > > > > > file[/color]
>> to[color=darkred]
>> > a
>> > > > > client
>> > > > > > > > through HTTP. I could not get that to work with one
>> > parameterized
>> > > > > > report.
>> > > > > > > > Parameters don't seem to get cached with reportdocument. I[/color]
>> tried[color=darkred]
>> > > my
>> > > > > > > > different things, like caching actuall ParamFields object,[/color]
>> etc.[color=darkred]
>> > > but
>> > > > > > > nothing
>> > > > > > > > seems to work.
>> > > > > > > > I need this button because export in Crystal webviewer
>> > > > > > > > opens[/color][/color]
> a[color=green][color=darkred]
>> > > popup
>> > > > > > > window
>> > > > > > > > with no toolbars, so users can't save it to a file. If I[/color][/color]
> could[color=green][color=darkred]
>> > > find
>> > > > > > > > workaround that, there would not be a need for this custom
>> > export
>> > > > > > button.
>> > > > > > > My
>> > > > > > > > biggest problem with Crystal right now is very simple but[/color][/color]
> yet[color=green][color=darkred]
>> > > > > important
>> > > > > > > > things take so much time effort to do that it becomes
>> > questionanle
>> > > > if
>> > > > > > it's
>> > > > > > > > all worth it. And default behavior of Crystal is just[/color][/color]
> bizarre[color=green][color=darkred]
>> > like
>> > > > > > opening
>> > > > > > > a
>> > > > > > > > popup with no toolbars when exporting to another format, so[/color]
>> file[color=darkred]
>> > > > can't
>> > > > > > be
>> > > > > > > > "save as"
>> > > > > > > >
>> > > > > > > >
>> > > > > > > >
>> > > > > > > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in
>> > message
>> > > > > > > > news:%230b8BKdGFHA.2976@TK2MSFTNGP09.phx.gbl...
>> > > > > > > > > I agree about the confusing API. Have you seen my
>> > > > > > > > > existing
>> > book,
>> > > > > > > "Crystal
>> > > > > > > > > Reports .NET Programming"? It teaches you how to use the[/color]
>> .NET[color=darkred]
>> > > > object
>> > > > > > > model
>> > > > > > > > > and has many tips and tricks for getting it to work.[/color][/color]
> Anyway,[color=green][color=darkred]
>> > it
>> > > > only
>> > > > > > > > touches
>> > > > > > > > > on the RAS and RDC programming a bit (I don't know if[/color][/color]
> using[color=green][color=darkred]
>> > that
>> > > > or
>> > > > > > > not).
>> > > > > > > > > I'm going to do another book which is hardcore RAS[/color]
>> programming[color=darkred]
>> > > > > because
>> > > > > > > RAS
>> > > > > > > > > is extremely complicated to learn and program with.. But[/color]
>> that[color=darkred]
>> > > > won't
>> > > > > be
>> > > > > > > > till
>> > > > > > > > > after I finish the CR XI book I'm working on now.
>> > > > > > > > >
>> > > > > > > > > Anyway, to answer your question, the mistake most people[/color]
>> make[color=darkred]
>> > is
>> > > > > that
>> > > > > > > they
>> > > > > > > > > mix up the viewer object model with the report object[/color][/color]
> model.[color=green][color=darkred]
>> > > They
>> > > > > set
>> > > > > > > some
>> > > > > > > > > properties using one object and set other properties
>> > > > > > > > > using[/color]
>> the[color=darkred]
>> > > > other
>> > > > > > > > object
>> > > > > > > > > model. Then they get consfused when some of the
>> > > > > > > > > properties[/color]
>> get[color=darkred]
>> > > > > > dropped.
>> > > > > > > > You
>> > > > > > > > > can only use ONE object model at a time. The best
>> > > > > > > > > practice[/color]
>> is[color=darkred]
>> > to
>> > > > use
>> > > > > > the
>> > > > > > > > > ReportDocument object model (unless working with[/color]
>> WebServices).[color=darkred]
>> > > Try
>> > > > > > that
>> > > > > > > > and
>> > > > > > > > > post the results here.
>> > > > > > > > >
>> > > > > > > > > Brian Bischof
>> > > > > > > > > www.CrystalReportsBook.com
>> > > > > > > > >
>> > > > > > > > >
>> > > > > > > > >
>> > > > > > > > > "LP" <lp@a.com> wrote in message
>> > > > > > > > > news:eS$1FzVGFHA.3612@TK2MSFTNGP09.phx.gbl...
>> > > > > > > > > > Ok, I did change it to ReportDocument , and that worked[/color]
>> for[color=darkred]
>> > me
>> > > > > even
>> > > > > > > > > without
>> > > > > > > > > > saving it to Session Variable. But now I am having[/color][/color]
> another[color=green][color=darkred]
>> > > > problem
>> > > > > > > with
>> > > > > > > > > > exporting. I have another button that export report to[/color]
>> excel[color=darkred]
>> > > and
>> > > > > > sends
>> > > > > > > a
>> > > > > > > > > > file to a client, so now one parameterized report[/color][/color]
> doesn't[color=green][color=darkred]
>> > > work.
>> > > > I
>> > > > > > > tried
>> > > > > > > > > > saving reportDoc and it ParameterFields to session and
>> > > > retrieving,
>> > > > > > but
>> > > > > > > > > > nothing works.
>> > > > > > > > > > I think CR is a very good product, very sharp looking
>> > reports
>> > > > > (when
>> > > > > > > you
>> > > > > > > > > get
>> > > > > > > > > > them to work), very slick designer especially version[/color][/color]
> XI.[color=green][color=darkred]
>> > But
>> > > > > their
>> > > > > > > API
>> > > > > > > > > and
>> > > > > > > > > > object hierarchy is terribly confusing and inconsistent[/color]
>> with[color=darkred]
>> > > > what
>> > > > > > one
>> > > > > > > > > would
>> > > > > > > > > > expect from .NET friendly product, I haven't seen any[/color][/color]
> good[color=green][color=darkred]
>> > > > > > > documentation
>> > > > > > > > > on
>> > > > > > > > > > their APIs.
>> > > > > > > > > >
>> > > > > > > > > >
>> > > > > > > > > > "LP" <lp@a.com> wrote in message
>> > > > > > > > > > news:ezCf58UGFHA.1456@TK2MSFTNGP09.phx.gbl...
>> > > > > > > > > > > Brian, I am not using ReportDocument object, I am[/color]
>> setting[color=darkred]
>> > > > > viewers
>> > > > > > > > > > > ReportSource to a report file directly:
>> > > > > > > > > > >
>> > > > > > > > > > > crViewer.ReportSource = Server.MapPath("Reports/" &
>> > > > reportName)
>> > > > > > > > > > >
>> > > > > > > > > > > What should I do in this case?
>> > > > > > > > > > >
>> > > > > > > > > > >
>> > > > > > > > > > >
>> > > > > > > > > > > Thanks
>> > > > > > > > > > >
>> > > > > > > > > > >
>> > > > > > > > > > > "Brian Bischof" <Brian@NoSpamBischofSystems.com>
>> > > > > > > > > > > wrote[/color]
>> in[color=darkred]
>> > > > > message
>> > > > > > > > > > > news:eQZxtDUGFHA.548@TK2MSFTNGP14.phx.gbl...
>> > > > > > > > > > > > You have to cache the report object. Save the
>> > > > > > > > > > > > report
>> > > object
>> > > > to
>> > > > > > the
>> > > > > > >
>> > > > > > > > > > > Session()
>> > > > > > > > > > > > collection and then restore it upon page refresh
>> > > > > > > > > > > > (be
>> > sure
>> > > to
>> > > > > > > > explicity
>> > > > > > > > > > > cast
>> > > > > > > > > > > > it as a ReportDocument). ASP.NET reports do all[/color][/color]
> kinds[color=green]
>> of[color=darkred]
>> > > > funny
>> > > > > > > > things
>> > > > > > > > > if
>> > > > > > > > > > > you
>> > > > > > > > > > > > don't save them between page refreshes.
>> > > > > > > > > > > >
>> > > > > > > > > > > > HTH,
>> > > > > > > > > > > >
>> > > > > > > > > > > > Brian Bischof
>> > > > > > > > > > > > www.CrystalReportsBook.com
>> > > > > > > > > > > >
>> > > > > > > > > > > >
>> > > > > > > > > > > >
>> > > > > > > > > > > > "LP" <lp@a.com> wrote in message
>> > > > > > > > > > > > news:OgS0FtTGFHA.2876@TK2MSFTNGP12.phx.gbl...
>> > > > > > > > > > > > > I am using (trying to) CR version XI, cascading
>> > > parameters
>> > > > > > > feature
>> > > > > > > > > > works
>> > > > > > > > > > > > it
>> > > > > > > > > > > > > asks user to enter params. But if page is[/color]
>> resubmitted.[color=darkred]
>> > > It
>> > > > > > > prompts
>> > > > > > > > > for
>> > > > > > > > > > > > params
>> > > > > > > > > > > > > again. I did set[/color]
>> ReuseParameterValuesOnRefresh="True"[color=darkred]
>> > in
>> > > a
>> > > > > > > viewer,
>> > > > > > > > > but
>> > > > > > > > > > > it
>> > > > > > > > > > > > > still doesn't work. Did anyone run into this[/color]
>> problem.[color=darkred]
>> > > > What's
>> > > > > > the
>> > > > > > > > > > > solution?
>> > > > > > > > > > > > > Please help.
>> > > > > > > > > > > > >
>> > > > > > > > > > > > > Thank you
>> > > > > > > > > > > > >
>> > > > > > > > > > > > >
>> > > > > > > > > > > >
>> > > > > > > > > > > >
>> > > > > > > > > > >
>> > > > > > > > > > >
>> > > > > > > > > >
>> > > > > > > > > >
>> > > > > > > > >
>> > > > > > > > >
>> > > > > > > >
>> > > > > > > >
>> > > > > > >
>> > > > > > >
>> > > > > >
>> > > > > >
>> > > > >
>> > > > >
>> > > > >
>> > > >
>> > > >
>> > >
>> > >
>> >
>> >[/color]
>>
>>[/color]
>
>[/color]


Brian Bischof
Guest
 
Posts: n/a
#17: Nov 19 '05

re: Crystal Reports Cascading parameters don't get preserved between postbacks


I'm glad we are providing entertainment for everyone. ;-)

It's not a code problem. The problem is the ASP.NET viewer toolbar in XI.
The ironic thing is that I sent two emails to tech support and they were
thinking I was talking about the code too. Anyway, I heard back from a
support guy and he says that this behavior is controlled through the File
Types dialog box in Windows Explorer. I'm going to look into it and post his
full response once I check it out.

Oh yeah - re the Save/Open dialog box behavior, yes I get it for all file
types including Excel and Word. Anyway, I should be posting the resolution
shortly, and then we can all get back to our normal jobs! :-)


Brian
www.CrystalReportsBook.com





"Rob Diamant" <rob@usi.com> wrote in message
news:Owurl%23rGFHA.3088@tk2msftngp13.phx.gbl...[color=blue]
> Guys,
>
> I have been following this thread for a while (it's entertaining, I can't
> wait for the finish) and was wondering what code is behind LP's Export
> Button that may be different then Brian's. Maybe you guys should compare.
>
> Rob
>
> "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
> news:%23HXLxMrGFHA.3504@TK2MSFTNGP10.phx.gbl...[color=green]
> > Man, we are really going around in circles about this one. I still say
> > it's
> > a browser issue and not a Crystal problem. For example, if I go into my
> > browser and tell it to display large fonts, I can't then send emails to
> > every website I visit complaining that their web designers should use
> > smaller fonts. On my browser I get the Open/Save dialog box that you[/color][/color]
don't[color=blue][color=green]
> > get and I also see an option to turn it off. Thus, it works fine on my
> > browser and it appears to be a browser controlled setting. So how could[/color][/color]
it[color=blue][color=green]
> > be a Crystal problem?
> >
> > That being said, I have no clue about how the Header record effects what
> > the
> > browser does. Maybe Crystal is using a Header record that makes the
> > Open/Save dialog box optional? Maybe their header record is only
> > compatible
> > with certain browser versions and doesn't work with others? I don't[/color][/color]
know.[color=blue][color=green]
> > This whole thing is getting very frustrating and I'm determined to[/color][/color]
figure[color=blue][color=green]
> > out what the heck is going on. Having it work one way in one browser and
> > another way in another browser and having no idea why is driving me[/color][/color]
crazy.[color=blue][color=green]
> > Somewhere there has to be a reasonable explanation for this problem you
> > are
> > having.
> >
> > Brian
> >
> >
> >
> > "LP" <lp@a.com> wrote in message
> > news:O$f8zSqGFHA.3312@TK2MSFTNGP10.phx.gbl...[color=darkred]
> >> > For example, I can go into Adobe Properties
> >> > and turn this on and off using one of their options. When that dialog[/color]
> > box[color=darkred]
> >> > opens, there is a checkbox at the bottom about whether you should be
> >> > prompted with this box again or just open the file directly.
> >>
> >> You are tweaking Adobe settings not the browser.
> >>
> >> >Thus, this is a
> >> > browser setting.
> >> No, it's Adobe setting.
> >>
> >> I can't find similar setting in browser or Excel Word either. And again[/color]
> > lets[color=darkred]
> >> assume it's a browser setting, but that would default behavior of a[/color]
> > browser.[color=darkred]
> >> So by default CR export functionality is unusable. I don't understand[/color][/color][/color]
how[color=blue][color=green]
> > CR[color=darkred]
> >> vendor (BusinessObjects as of today) could not see that someone would
> >> actually want to save exported file, not just look at it in a popup[/color]
> > window.[color=darkred]
> >> When I get a chance, I'll look into how to filter HTML rendered by CR[/color][/color][/color]
and[color=blue][color=green][color=darkred]
> >> modify it to enable save as functionality.
> >>
> >>
> >> "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
> >> news:%23mI5GUpGFHA.3312@TK2MSFTNGP10.phx.gbl...
> >> > Ok, that's what I thought. I think that is a browser issue b/c I was[/color]
> > able[color=darkred]
> >> to
> >> > toggle this feature on and off. For example, I can go into Adobe
> >> Properties
> >> > and turn this on and off using one of their options. When that dialog[/color]
> > box[color=darkred]
> >> > opens, there is a checkbox at the bottom about whether you should be
> >> > prompted with this box again or just open the file directly. Thus,[/color][/color][/color]
this[color=blue][color=green]
> > is[color=darkred]
> >> a
> >> > browser setting. The header doesn't control it b/c on my computer I[/color][/color][/color]
was[color=blue][color=green][color=darkred]
> >> able
> >> > to get the dialog box to come up or send it directly to a browser
> >> > window
> >> > using and Adobe Properties setting. I would search Google to see how[/color][/color][/color]
to[color=blue][color=green][color=darkred]
> >> turn
> >> > this on or off.
> >> >
> >> > Brian
> >> >
> >> >
> >> >
> >> > "LP" <lp@a.com> wrote in message
> >> > news:erPQ26oGFHA.1176@TK2MSFTNGP12.phx.gbl...
> >> > > > Are you saying that you don't get the Open/Save dialog box or you
> >> > > > do
> >> get
> >> > > it?
> >> > >
> >> > > I do NOT get it. When I click export icon it opens a popup window
> >> > > with
> >> > > Excel, or Word embedded in the window, but no toolbars no nothing[/color][/color][/color]
and[color=blue][color=green][color=darkred]
> >> > > certainly NO "Save as" dialog box. If you could come up with a way[/color][/color][/color]
to[color=blue][color=green][color=darkred]
> >> > > provide users with ability to "save as" what's embedded inside a[/color]
> > popup,[color=darkred]
> >> I
> >> > > would greatly appreciate it.
> >> > >
> >> > > Thanks
> >> > >
> >> > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
> >> > > news:%23vaVMUjGFHA.1096@tk2msftngp13.phx.gbl...
> >> > > > Are you saying that you don't get the Open/Save dialog box or you
> >> > > > do
> >> get
> >> > > it?
> >> > > > It seems that you don't get it at all. I get it on my computer[/color][/color][/color]
and[color=blue][color=green][color=darkred]
> >> > > > I
> >> > think
> >> > > > this is a browser issue. As I said earlier, I was able to turn
> >> > > > enable/disable it using a PDF option. The second issue of the[/color]
> > toolbar[color=darkred]
> >> > not
> >> > > > having the Save buttons could be a header issue. I'm not[/color]
> > knowledgeable[color=darkred]
> >> > > about
> >> > > > HTML headers but it does make sense that the header tags can
> >> > > > control
> >> > this.
> >> > > I
> >> > > > will have to research that tomorrow.
> >> > > >
> >> > > > Brian Bischof
> >> > > > www.CrystalReportsBook.com
> >> > > >
> >> > > >
> >> > > >
> >> > > > "LP" <lp@a.com> wrote in message
> >> > > > news:%23GkSYeiGFHA.2620@tk2msftngp13.phx.gbl...
> >> > > > > Brian, Thanks for looking into this for me.
> >> > > > > I think you understand my problem. But just to be clear:
> >> > > > > When I click export button of a webviewer, it does open a popup
> >> window
> >> > > and
> >> > > > > loads excel, word, etc. into the window. But there's no obvious[/color]
> > way[color=darkred]
> >> to
> >> > > > save
> >> > > > > it to a local drive as a file (other than copy and paste) And,[/color]
> > yes,[color=darkred]
> >> > you
> >> > > > are
> >> > > > > right PDF is the only format with a toolbar that has "save as"[/color]
> > icon.[color=darkred]
> >> > But
> >> > > I
> >> > > > > think it's part of PDF object embedded within a browser. I also
> >> looked
> >> > > in
> >> > > > > browser settings to make it open "save as" dialog box, but[/color][/color][/color]
could[color=blue][color=green]
> > not[color=darkred]
> >> > > find
> >> > > > > anything.
> >> > > > > But I begin to doubt that it is a browser issue like you[/color]
> > suggesting.[color=darkred]
> >> I
> >> > > > think
> >> > > > > this behavior is controlled by HTTP header tags. I know that[/color]
> > there's[color=darkred]
> >> a
> >> > > > > header tag content-type (or something like that) where you can
> >> specify
> >> > > > > ms-excel, ms-word, etc. And there's also "attachment;[/color][/color][/color]
filename="[color=blue][color=green]
> > tag[color=darkred]
> >> > > where
> >> > > > > you can give file name and browser then will prompt you to save
> >> > > > > or
> >> > open
> >> > > > that
> >> > > > > file. So, I do think it's the way CR not providing the right[/color][/color][/color]
HTTP[color=blue][color=green][color=darkred]
> >> > header
> >> > > > > tags for the popup is a root of the problem. So, I am thinking[/color][/color][/color]
of[color=blue][color=green][color=darkred]
> >> > > > > intercepting CR rendered HTML and modifying it, but I haven't[/color][/color][/color]
had[color=blue][color=green][color=darkred]
> >> any
> >> > > time
> >> > > > > to do anything serious like that, after all I am just building[/color][/color][/color]
a[color=blue][color=green][color=darkred]
> >> demo
> >> > > app.
> >> > > > > Let me know if you find anything else, or if I am on the right
> >> track.
> >> > > > >
> >> > > > > Thank you again for your input.
> >> > > > >
> >> > > > >
> >> > > > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in[/color][/color][/color]
message[color=blue][color=green][color=darkred]
> >> > > > > news:%23rZC84fGFHA.2524@TK2MSFTNGP15.phx.gbl...
> >> > > > > > Hmmm. I'm looking over all your posts. The first post you had[/color]
> > last[color=darkred]
> >> > > week
> >> > > > > said
> >> > > > > > that you couldn't get the Save As dialog box to open.[/color][/color][/color]
Instead,[color=blue][color=green]
> > it[color=darkred]
> >> > > always
> >> > > > > > spawned a new window. Now it seems that when you are in the[/color][/color][/color]
new[color=blue][color=green][color=darkred]
> >> > window
> >> > > > it
> >> > > > > > won't allow saving the data. I assume this is a direct result
> >> > > > > > of
> >> not
> >> > > > being
> >> > > > > > able to solve the first problem. So here are my comments.
> >> > > > > >
> >> > > > > > First is that if the export button doesn't open the Save/Open
> >> dialog
> >> > > > box,
> >> > > > > > then I think it's a browser issue. For example, at the bottom
> >> > > > > > of
> >> the
> >> > > > > dialog
> >> > > > > > box is a checkbox telling whether it should prompt you with
> >> > > > > > this
> >> or
> >> > > not.
> >> > > > I
> >> > > > > > played around with it for Excel and Word but this had no
> >> > > > > > effect.[/color]
> > I[color=darkred]
> >> > did
> >> > > > > find
> >> > > > > > out that I can change this with Adobe inside the Adobe[/color][/color][/color]
Internet[color=blue][color=green][color=darkred]
> >> > > > > preferences.
> >> > > > > > After fixing that I got the Open/Save box for PDFs again. I[/color]
> > looked[color=darkred]
> >> > in
> >> > > > > > preferences for Excel/Word and couldn't find such an option.[/color]
> > Thus,[color=darkred]
> >> > the
> >> > > > PDF
> >> > > > > > option makes me think that the browser is controlling this[/color][/color][/color]
and[color=blue][color=green]
> > not[color=darkred]
> >> > CR
> >> > > > XI.
> >> > > > > > Overall, I have the Open/Save dialog popping up for all file[/color]
> > types[color=darkred]
> >> > in
> >> > > my
> >> > > > > > brower and you should be able to get them too.
> >> > > > > >
> >> > > > > > Re the Excel and Word browsers not letting you save data,[/color][/color][/color]
this[color=blue][color=green]
> > is[color=darkred]
> >> > > > > happening
> >> > > > > > with my computer as well. However, again I have to question[/color][/color][/color]
if[color=blue][color=green][color=darkred]
> >> this
> >> > is
> >> > > a
> >> > > > > > browser issue or a CR XI issue since XI is just sending the[/color][/color][/color]
XLS[color=blue][color=green][color=darkred]
> >> file
> >> > > to
> >> > > > > the
> >> > > > > > browser. I'll continue to play with it b/c I don't know the[/color]
> > answer[color=darkred]
> >> > to
> >> > > > this
> >> > > > > > one yet. But I think your best bet is to look at the first
> >> > > > > > issue
> >> and
> >> > > get
> >> > > > > the
> >> > > > > > Open/Save dialog box to pop up by tweaking the IE settings.
> >> > > > > >
> >> > > > > > HTH,
> >> > > > > >
> >> > > > > > Brian Bischof
> >> > > > > > www.CrystalReportsBook.com
> >> > > > > >
> >> > > > > >
> >> > > > > >
> >> > > > > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in[/color]
> > message[color=darkred]
> >> > > > > > news:%236jPVYfGFHA.3472@TK2MSFTNGP09.phx.gbl...
> >> > > > > > > Those are good points. Let me look into the export problem[/color][/color][/color]
of[color=blue][color=green][color=darkred]
> >> not
> >> > > > saving
> >> > > > > > to
> >> > > > > > > disk and see if I can get you an answer.
> >> > > > > > >
> >> > > > > > > Brian
> >> > > > > > >
> >> > > > > > >
> >> > > > > > > "LP" <lp@a.com> wrote in message
> >> > > > > > > news:%23VXeKbeGFHA.4088@TK2MSFTNGP09.phx.gbl...
> >> > > > > > > > >The best practice is to use the
> >> > > > > > > > > ReportDocument object model (unless working with
> >> WebServices).
> >> > > Try
> >> > > > > > that
> >> > > > > > > > and
> >> > > > > > > > > post the results here.
> >> > > > > > > >
> >> > > > > > > > ReportDocument did work for me for postback problems. But[/color][/color][/color]
I[color=blue][color=green][color=darkred]
> >> also
> >> > > > have
> >> > > > > a
> >> > > > > > > > button that exports report to excel and then sends this
> >> > > > > > > > file
> >> to
> >> > a
> >> > > > > client
> >> > > > > > > > through HTTP. I could not get that to work with one
> >> > parameterized
> >> > > > > > report.
> >> > > > > > > > Parameters don't seem to get cached with reportdocument.[/color][/color][/color]
I[color=blue][color=green][color=darkred]
> >> tried
> >> > > my
> >> > > > > > > > different things, like caching actuall ParamFields[/color][/color][/color]
object,[color=blue][color=green][color=darkred]
> >> etc.
> >> > > but
> >> > > > > > > nothing
> >> > > > > > > > seems to work.
> >> > > > > > > > I need this button because export in Crystal webviewer
> >> > > > > > > > opens[/color]
> > a[color=darkred]
> >> > > popup
> >> > > > > > > window
> >> > > > > > > > with no toolbars, so users can't save it to a file. If I[/color]
> > could[color=darkred]
> >> > > find
> >> > > > > > > > workaround that, there would not be a need for this[/color][/color][/color]
custom[color=blue][color=green][color=darkred]
> >> > export
> >> > > > > > button.
> >> > > > > > > My
> >> > > > > > > > biggest problem with Crystal right now is very simple but[/color]
> > yet[color=darkred]
> >> > > > > important
> >> > > > > > > > things take so much time effort to do that it becomes
> >> > questionanle
> >> > > > if
> >> > > > > > it's
> >> > > > > > > > all worth it. And default behavior of Crystal is just[/color]
> > bizarre[color=darkred]
> >> > like
> >> > > > > > opening
> >> > > > > > > a
> >> > > > > > > > popup with no toolbars when exporting to another format,[/color][/color][/color]
so[color=blue][color=green][color=darkred]
> >> file
> >> > > > can't
> >> > > > > > be
> >> > > > > > > > "save as"
> >> > > > > > > >
> >> > > > > > > >
> >> > > > > > > >
> >> > > > > > > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in
> >> > message
> >> > > > > > > > news:%230b8BKdGFHA.2976@TK2MSFTNGP09.phx.gbl...
> >> > > > > > > > > I agree about the confusing API. Have you seen my
> >> > > > > > > > > existing
> >> > book,
> >> > > > > > > "Crystal
> >> > > > > > > > > Reports .NET Programming"? It teaches you how to use[/color][/color][/color]
the[color=blue][color=green][color=darkred]
> >> .NET
> >> > > > object
> >> > > > > > > model
> >> > > > > > > > > and has many tips and tricks for getting it to work.[/color]
> > Anyway,[color=darkred]
> >> > it
> >> > > > only
> >> > > > > > > > touches
> >> > > > > > > > > on the RAS and RDC programming a bit (I don't know if[/color]
> > using[color=darkred]
> >> > that
> >> > > > or
> >> > > > > > > not).
> >> > > > > > > > > I'm going to do another book which is hardcore RAS
> >> programming
> >> > > > > because
> >> > > > > > > RAS
> >> > > > > > > > > is extremely complicated to learn and program with..[/color][/color][/color]
But[color=blue][color=green][color=darkred]
> >> that
> >> > > > won't
> >> > > > > be
> >> > > > > > > > till
> >> > > > > > > > > after I finish the CR XI book I'm working on now.
> >> > > > > > > > >
> >> > > > > > > > > Anyway, to answer your question, the mistake most[/color][/color][/color]
people[color=blue][color=green][color=darkred]
> >> make
> >> > is
> >> > > > > that
> >> > > > > > > they
> >> > > > > > > > > mix up the viewer object model with the report object[/color]
> > model.[color=darkred]
> >> > > They
> >> > > > > set
> >> > > > > > > some
> >> > > > > > > > > properties using one object and set other properties
> >> > > > > > > > > using
> >> the
> >> > > > other
> >> > > > > > > > object
> >> > > > > > > > > model. Then they get consfused when some of the
> >> > > > > > > > > properties
> >> get
> >> > > > > > dropped.
> >> > > > > > > > You
> >> > > > > > > > > can only use ONE object model at a time. The best
> >> > > > > > > > > practice
> >> is
> >> > to
> >> > > > use
> >> > > > > > the
> >> > > > > > > > > ReportDocument object model (unless working with
> >> WebServices).
> >> > > Try
> >> > > > > > that
> >> > > > > > > > and
> >> > > > > > > > > post the results here.
> >> > > > > > > > >
> >> > > > > > > > > Brian Bischof
> >> > > > > > > > > www.CrystalReportsBook.com
> >> > > > > > > > >
> >> > > > > > > > >
> >> > > > > > > > >
> >> > > > > > > > > "LP" <lp@a.com> wrote in message
> >> > > > > > > > > news:eS$1FzVGFHA.3612@TK2MSFTNGP09.phx.gbl...
> >> > > > > > > > > > Ok, I did change it to ReportDocument , and that[/color][/color][/color]
worked[color=blue][color=green][color=darkred]
> >> for
> >> > me
> >> > > > > even
> >> > > > > > > > > without
> >> > > > > > > > > > saving it to Session Variable. But now I am having[/color]
> > another[color=darkred]
> >> > > > problem
> >> > > > > > > with
> >> > > > > > > > > > exporting. I have another button that export report[/color][/color][/color]
to[color=blue][color=green][color=darkred]
> >> excel
> >> > > and
> >> > > > > > sends
> >> > > > > > > a
> >> > > > > > > > > > file to a client, so now one parameterized report[/color]
> > doesn't[color=darkred]
> >> > > work.
> >> > > > I
> >> > > > > > > tried
> >> > > > > > > > > > saving reportDoc and it ParameterFields to session[/color][/color][/color]
and[color=blue][color=green][color=darkred]
> >> > > > retrieving,
> >> > > > > > but
> >> > > > > > > > > > nothing works.
> >> > > > > > > > > > I think CR is a very good product, very sharp looking
> >> > reports
> >> > > > > (when
> >> > > > > > > you
> >> > > > > > > > > get
> >> > > > > > > > > > them to work), very slick designer especially version[/color]
> > XI.[color=darkred]
> >> > But
> >> > > > > their
> >> > > > > > > API
> >> > > > > > > > > and
> >> > > > > > > > > > object hierarchy is terribly confusing and[/color][/color][/color]
inconsistent[color=blue][color=green][color=darkred]
> >> with
> >> > > > what
> >> > > > > > one
> >> > > > > > > > > would
> >> > > > > > > > > > expect from .NET friendly product, I haven't seen any[/color]
> > good[color=darkred]
> >> > > > > > > documentation
> >> > > > > > > > > on
> >> > > > > > > > > > their APIs.
> >> > > > > > > > > >
> >> > > > > > > > > >
> >> > > > > > > > > > "LP" <lp@a.com> wrote in message
> >> > > > > > > > > > news:ezCf58UGFHA.1456@TK2MSFTNGP09.phx.gbl...
> >> > > > > > > > > > > Brian, I am not using ReportDocument object, I am
> >> setting
> >> > > > > viewers
> >> > > > > > > > > > > ReportSource to a report file directly:
> >> > > > > > > > > > >
> >> > > > > > > > > > > crViewer.ReportSource = Server.MapPath("Reports/" &
> >> > > > reportName)
> >> > > > > > > > > > >
> >> > > > > > > > > > > What should I do in this case?
> >> > > > > > > > > > >
> >> > > > > > > > > > >
> >> > > > > > > > > > >
> >> > > > > > > > > > > Thanks
> >> > > > > > > > > > >
> >> > > > > > > > > > >
> >> > > > > > > > > > > "Brian Bischof" <Brian@NoSpamBischofSystems.com>
> >> > > > > > > > > > > wrote
> >> in
> >> > > > > message
> >> > > > > > > > > > > news:eQZxtDUGFHA.548@TK2MSFTNGP14.phx.gbl...
> >> > > > > > > > > > > > You have to cache the report object. Save the
> >> > > > > > > > > > > > report
> >> > > object
> >> > > > to
> >> > > > > > the
> >> > > > > > >
> >> > > > > > > > > > > Session()
> >> > > > > > > > > > > > collection and then restore it upon page refresh
> >> > > > > > > > > > > > (be
> >> > sure
> >> > > to
> >> > > > > > > > explicity
> >> > > > > > > > > > > cast
> >> > > > > > > > > > > > it as a ReportDocument). ASP.NET reports do all[/color]
> > kinds[color=darkred]
> >> of
> >> > > > funny
> >> > > > > > > > things
> >> > > > > > > > > if
> >> > > > > > > > > > > you
> >> > > > > > > > > > > > don't save them between page refreshes.
> >> > > > > > > > > > > >
> >> > > > > > > > > > > > HTH,
> >> > > > > > > > > > > >
> >> > > > > > > > > > > > Brian Bischof
> >> > > > > > > > > > > > www.CrystalReportsBook.com
> >> > > > > > > > > > > >
> >> > > > > > > > > > > >
> >> > > > > > > > > > > >
> >> > > > > > > > > > > > "LP" <lp@a.com> wrote in message
> >> > > > > > > > > > > > news:OgS0FtTGFHA.2876@TK2MSFTNGP12.phx.gbl...
> >> > > > > > > > > > > > > I am using (trying to) CR version XI, cascading
> >> > > parameters
> >> > > > > > > feature
> >> > > > > > > > > > works
> >> > > > > > > > > > > > it
> >> > > > > > > > > > > > > asks user to enter params. But if page is
> >> resubmitted.
> >> > > It
> >> > > > > > > prompts
> >> > > > > > > > > for
> >> > > > > > > > > > > > params
> >> > > > > > > > > > > > > again. I did set
> >> ReuseParameterValuesOnRefresh="True"
> >> > in
> >> > > a
> >> > > > > > > viewer,
> >> > > > > > > > > but
> >> > > > > > > > > > > it
> >> > > > > > > > > > > > > still doesn't work. Did anyone run into this
> >> problem.
> >> > > > What's
> >> > > > > > the
> >> > > > > > > > > > > solution?
> >> > > > > > > > > > > > > Please help.
> >> > > > > > > > > > > > >
> >> > > > > > > > > > > > > Thank you
> >> > > > > > > > > > > > >
> >> > > > > > > > > > > > >
> >> > > > > > > > > > > >
> >> > > > > > > > > > > >
> >> > > > > > > > > > >
> >> > > > > > > > > > >
> >> > > > > > > > > >
> >> > > > > > > > > >
> >> > > > > > > > >
> >> > > > > > > > >
> >> > > > > > > >
> >> > > > > > > >
> >> > > > > > >
> >> > > > > > >
> >> > > > > >
> >> > > > > >
> >> > > > >
> >> > > > >
> >> > > > >
> >> > > >
> >> > > >
> >> > >
> >> > >
> >> >
> >> >
> >>
> >>[/color]
> >
> >[/color]
>
>[/color]


Brian Bischof
Guest
 
Posts: n/a
#18: Nov 19 '05

re: Crystal Reports Cascading parameters don't get preserved between postbacks


After playing around with this it seems to work really well. In fact, I'm
even able to get the Excel export to open in Excel with a full toolbar. I
feel so much better now. Here is the resolution email. Play around with the
different checkboxes to get different results. This email is from the guy
that wrote the XI toolbar export functionality!

HTH,

Brian Bischof
www.CrystalReportsBook.com


-------------------
It sounds like the exporting is done through the viewer toolbar in a webform
viewer. The behavior is generic for IE and depends on whether user has
disabled the confirmation dialog, and whether the file is sent as
attachment. We send exported files inline, not as attachment, when
exporting through the viewer. You can change this behavior by adjusting the
user setting as below.

1. Open an Explorer window.
2. Select Tools | Folder Options (assuming Windows XP).
3. Select File Types tab.
4. Find the appropriate file type, click Advanced button.
5. Ensure "Confirm open after download" is checked.

There is a new method on ReportDocument.ExportToHttpResponse for developers
to control whether the exported file is sent as attachment.

I suspect the toolbar problem is because we turned off the IE menu in that
export window. There is no way to turn the menu on at this time.

-------------------


"Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
news:eDKeGKsGFHA.2620@tk2msftngp13.phx.gbl...[color=blue]
> I'm glad we are providing entertainment for everyone. ;-)
>
> It's not a code problem. The problem is the ASP.NET viewer toolbar in XI.
> The ironic thing is that I sent two emails to tech support and they were
> thinking I was talking about the code too. Anyway, I heard back from a
> support guy and he says that this behavior is controlled through the File
> Types dialog box in Windows Explorer. I'm going to look into it and post[/color]
his[color=blue]
> full response once I check it out.
>
> Oh yeah - re the Save/Open dialog box behavior, yes I get it for all file
> types including Excel and Word. Anyway, I should be posting the resolution
> shortly, and then we can all get back to our normal jobs! :-)
>
>
> Brian
> www.CrystalReportsBook.com
>
>
>
>
>
> "Rob Diamant" <rob@usi.com> wrote in message
> news:Owurl%23rGFHA.3088@tk2msftngp13.phx.gbl...[color=green]
> > Guys,
> >
> > I have been following this thread for a while (it's entertaining, I[/color][/color]
can't[color=blue][color=green]
> > wait for the finish) and was wondering what code is behind LP's Export
> > Button that may be different then Brian's. Maybe you guys should[/color][/color]
compare.[color=blue][color=green]
> >
> > Rob
> >
> > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
> > news:%23HXLxMrGFHA.3504@TK2MSFTNGP10.phx.gbl...[color=darkred]
> > > Man, we are really going around in circles about this one. I still say
> > > it's
> > > a browser issue and not a Crystal problem. For example, if I go into[/color][/color][/color]
my[color=blue][color=green][color=darkred]
> > > browser and tell it to display large fonts, I can't then send emails[/color][/color][/color]
to[color=blue][color=green][color=darkred]
> > > every website I visit complaining that their web designers should use
> > > smaller fonts. On my browser I get the Open/Save dialog box that you[/color][/color]
> don't[color=green][color=darkred]
> > > get and I also see an option to turn it off. Thus, it works fine on my
> > > browser and it appears to be a browser controlled setting. So how[/color][/color][/color]
could[color=blue]
> it[color=green][color=darkred]
> > > be a Crystal problem?
> > >
> > > That being said, I have no clue about how the Header record effects[/color][/color][/color]
what[color=blue][color=green][color=darkred]
> > > the
> > > browser does. Maybe Crystal is using a Header record that makes the
> > > Open/Save dialog box optional? Maybe their header record is only
> > > compatible
> > > with certain browser versions and doesn't work with others? I don't[/color][/color]
> know.[color=green][color=darkred]
> > > This whole thing is getting very frustrating and I'm determined to[/color][/color]
> figure[color=green][color=darkred]
> > > out what the heck is going on. Having it work one way in one browser[/color][/color][/color]
and[color=blue][color=green][color=darkred]
> > > another way in another browser and having no idea why is driving me[/color][/color]
> crazy.[color=green][color=darkred]
> > > Somewhere there has to be a reasonable explanation for this problem[/color][/color][/color]
you[color=blue][color=green][color=darkred]
> > > are
> > > having.
> > >
> > > Brian
> > >
> > >
> > >
> > > "LP" <lp@a.com> wrote in message
> > > news:O$f8zSqGFHA.3312@TK2MSFTNGP10.phx.gbl...
> > >> > For example, I can go into Adobe Properties
> > >> > and turn this on and off using one of their options. When that[/color][/color][/color]
dialog[color=blue][color=green][color=darkred]
> > > box
> > >> > opens, there is a checkbox at the bottom about whether you should[/color][/color][/color]
be[color=blue][color=green][color=darkred]
> > >> > prompted with this box again or just open the file directly.
> > >>
> > >> You are tweaking Adobe settings not the browser.
> > >>
> > >> >Thus, this is a
> > >> > browser setting.
> > >> No, it's Adobe setting.
> > >>
> > >> I can't find similar setting in browser or Excel Word either. And[/color][/color][/color]
again[color=blue][color=green][color=darkred]
> > > lets
> > >> assume it's a browser setting, but that would default behavior of a
> > > browser.
> > >> So by default CR export functionality is unusable. I don't understand[/color][/color]
> how[color=green][color=darkred]
> > > CR
> > >> vendor (BusinessObjects as of today) could not see that someone would
> > >> actually want to save exported file, not just look at it in a popup
> > > window.
> > >> When I get a chance, I'll look into how to filter HTML rendered by CR[/color][/color]
> and[color=green][color=darkred]
> > >> modify it to enable save as functionality.
> > >>
> > >>
> > >> "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
> > >> news:%23mI5GUpGFHA.3312@TK2MSFTNGP10.phx.gbl...
> > >> > Ok, that's what I thought. I think that is a browser issue b/c I[/color][/color][/color]
was[color=blue][color=green][color=darkred]
> > > able
> > >> to
> > >> > toggle this feature on and off. For example, I can go into Adobe
> > >> Properties
> > >> > and turn this on and off using one of their options. When that[/color][/color][/color]
dialog[color=blue][color=green][color=darkred]
> > > box
> > >> > opens, there is a checkbox at the bottom about whether you should[/color][/color][/color]
be[color=blue][color=green][color=darkred]
> > >> > prompted with this box again or just open the file directly. Thus,[/color][/color]
> this[color=green][color=darkred]
> > > is
> > >> a
> > >> > browser setting. The header doesn't control it b/c on my computer I[/color][/color]
> was[color=green][color=darkred]
> > >> able
> > >> > to get the dialog box to come up or send it directly to a browser
> > >> > window
> > >> > using and Adobe Properties setting. I would search Google to see[/color][/color][/color]
how[color=blue]
> to[color=green][color=darkred]
> > >> turn
> > >> > this on or off.
> > >> >
> > >> > Brian
> > >> >
> > >> >
> > >> >
> > >> > "LP" <lp@a.com> wrote in message
> > >> > news:erPQ26oGFHA.1176@TK2MSFTNGP12.phx.gbl...
> > >> > > > Are you saying that you don't get the Open/Save dialog box or[/color][/color][/color]
you[color=blue][color=green][color=darkred]
> > >> > > > do
> > >> get
> > >> > > it?
> > >> > >
> > >> > > I do NOT get it. When I click export icon it opens a popup window
> > >> > > with
> > >> > > Excel, or Word embedded in the window, but no toolbars no nothing[/color][/color]
> and[color=green][color=darkred]
> > >> > > certainly NO "Save as" dialog box. If you could come up with a[/color][/color][/color]
way[color=blue]
> to[color=green][color=darkred]
> > >> > > provide users with ability to "save as" what's embedded inside a
> > > popup,
> > >> I
> > >> > > would greatly appreciate it.
> > >> > >
> > >> > > Thanks
> > >> > >
> > >> > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
> > >> > > news:%23vaVMUjGFHA.1096@tk2msftngp13.phx.gbl...
> > >> > > > Are you saying that you don't get the Open/Save dialog box or[/color][/color][/color]
you[color=blue][color=green][color=darkred]
> > >> > > > do
> > >> get
> > >> > > it?
> > >> > > > It seems that you don't get it at all. I get it on my computer[/color][/color]
> and[color=green][color=darkred]
> > >> > > > I
> > >> > think
> > >> > > > this is a browser issue. As I said earlier, I was able to turn
> > >> > > > enable/disable it using a PDF option. The second issue of the
> > > toolbar
> > >> > not
> > >> > > > having the Save buttons could be a header issue. I'm not
> > > knowledgeable
> > >> > > about
> > >> > > > HTML headers but it does make sense that the header tags can
> > >> > > > control
> > >> > this.
> > >> > > I
> > >> > > > will have to research that tomorrow.
> > >> > > >
> > >> > > > Brian Bischof
> > >> > > > www.CrystalReportsBook.com
> > >> > > >
> > >> > > >
> > >> > > >
> > >> > > > "LP" <lp@a.com> wrote in message
> > >> > > > news:%23GkSYeiGFHA.2620@tk2msftngp13.phx.gbl...
> > >> > > > > Brian, Thanks for looking into this for me.
> > >> > > > > I think you understand my problem. But just to be clear:
> > >> > > > > When I click export button of a webviewer, it does open a[/color][/color][/color]
popup[color=blue][color=green][color=darkred]
> > >> window
> > >> > > and
> > >> > > > > loads excel, word, etc. into the window. But there's no[/color][/color][/color]
obvious[color=blue][color=green][color=darkred]
> > > way
> > >> to
> > >> > > > save
> > >> > > > > it to a local drive as a file (other than copy and paste)[/color][/color][/color]
And,[color=blue][color=green][color=darkred]
> > > yes,
> > >> > you
> > >> > > > are
> > >> > > > > right PDF is the only format with a toolbar that has "save[/color][/color][/color]
as"[color=blue][color=green][color=darkred]
> > > icon.
> > >> > But
> > >> > > I
> > >> > > > > think it's part of PDF object embedded within a browser. I[/color][/color][/color]
also[color=blue][color=green][color=darkred]
> > >> looked
> > >> > > in
> > >> > > > > browser settings to make it open "save as" dialog box, but[/color][/color]
> could[color=green][color=darkred]
> > > not
> > >> > > find
> > >> > > > > anything.
> > >> > > > > But I begin to doubt that it is a browser issue like you
> > > suggesting.
> > >> I
> > >> > > > think
> > >> > > > > this behavior is controlled by HTTP header tags. I know that
> > > there's
> > >> a
> > >> > > > > header tag content-type (or something like that) where you[/color][/color][/color]
can[color=blue][color=green][color=darkred]
> > >> specify
> > >> > > > > ms-excel, ms-word, etc. And there's also "attachment;[/color][/color]
> filename="[color=green][color=darkred]
> > > tag
> > >> > > where
> > >> > > > > you can give file name and browser then will prompt you to[/color][/color][/color]
save[color=blue][color=green][color=darkred]
> > >> > > > > or
> > >> > open
> > >> > > > that
> > >> > > > > file. So, I do think it's the way CR not providing the right[/color][/color]
> HTTP[color=green][color=darkred]
> > >> > header
> > >> > > > > tags for the popup is a root of the problem. So, I am[/color][/color][/color]
thinking[color=blue]
> of[color=green][color=darkred]
> > >> > > > > intercepting CR rendered HTML and modifying it, but I haven't[/color][/color]
> had[color=green][color=darkred]
> > >> any
> > >> > > time
> > >> > > > > to do anything serious like that, after all I am just[/color][/color][/color]
building[color=blue]
> a[color=green][color=darkred]
> > >> demo
> > >> > > app.
> > >> > > > > Let me know if you find anything else, or if I am on the[/color][/color][/color]
right[color=blue][color=green][color=darkred]
> > >> track.
> > >> > > > >
> > >> > > > > Thank you again for your input.
> > >> > > > >
> > >> > > > >
> > >> > > > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in[/color][/color]
> message[color=green][color=darkred]
> > >> > > > > news:%23rZC84fGFHA.2524@TK2MSFTNGP15.phx.gbl...
> > >> > > > > > Hmmm. I'm looking over all your posts. The first post you[/color][/color][/color]
had[color=blue][color=green][color=darkred]
> > > last
> > >> > > week
> > >> > > > > said
> > >> > > > > > that you couldn't get the Save As dialog box to open.[/color][/color]
> Instead,[color=green][color=darkred]
> > > it
> > >> > > always
> > >> > > > > > spawned a new window. Now it seems that when you are in the[/color][/color]
> new[color=green][color=darkred]
> > >> > window
> > >> > > > it
> > >> > > > > > won't allow saving the data. I assume this is a direct[/color][/color][/color]
result[color=blue][color=green][color=darkred]
> > >> > > > > > of
> > >> not
> > >> > > > being
> > >> > > > > > able to solve the first problem. So here are my comments.
> > >> > > > > >
> > >> > > > > > First is that if the export button doesn't open the[/color][/color][/color]
Save/Open[color=blue][color=green][color=darkred]
> > >> dialog
> > >> > > > box,
> > >> > > > > > then I think it's a browser issue. For example, at the[/color][/color][/color]
bottom[color=blue][color=green][color=darkred]
> > >> > > > > > of
> > >> the
> > >> > > > > dialog
> > >> > > > > > box is a checkbox telling whether it should prompt you with
> > >> > > > > > this
> > >> or
> > >> > > not.
> > >> > > > I
> > >> > > > > > played around with it for Excel and Word but this had no
> > >> > > > > > effect.
> > > I
> > >> > did
> > >> > > > > find
> > >> > > > > > out that I can change this with Adobe inside the Adobe[/color][/color]
> Internet[color=green][color=darkred]
> > >> > > > > preferences.
> > >> > > > > > After fixing that I got the Open/Save box for PDFs again. I
> > > looked
> > >> > in
> > >> > > > > > preferences for Excel/Word and couldn't find such an[/color][/color][/color]
option.[color=blue][color=green][color=darkred]
> > > Thus,
> > >> > the
> > >> > > > PDF
> > >> > > > > > option makes me think that the browser is controlling this[/color][/color]
> and[color=green][color=darkred]
> > > not
> > >> > CR
> > >> > > > XI.
> > >> > > > > > Overall, I have the Open/Save dialog popping up for all[/color][/color][/color]
file[color=blue][color=green][color=darkred]
> > > types
> > >> > in
> > >> > > my
> > >> > > > > > brower and you should be able to get them too.
> > >> > > > > >
> > >> > > > > > Re the Excel and Word browsers not letting you save data,[/color][/color]
> this[color=green][color=darkred]
> > > is
> > >> > > > > happening
> > >> > > > > > with my computer as well. However, again I have to question[/color][/color]
> if[color=green][color=darkred]
> > >> this
> > >> > is
> > >> > > a
> > >> > > > > > browser issue or a CR XI issue since XI is just sending the[/color][/color]
> XLS[color=green][color=darkred]
> > >> file
> > >> > > to
> > >> > > > > the
> > >> > > > > > browser. I'll continue to play with it b/c I don't know the
> > > answer
> > >> > to
> > >> > > > this
> > >> > > > > > one yet. But I think your best bet is to look at the first
> > >> > > > > > issue
> > >> and
> > >> > > get
> > >> > > > > the
> > >> > > > > > Open/Save dialog box to pop up by tweaking the IE settings.
> > >> > > > > >
> > >> > > > > > HTH,
> > >> > > > > >
> > >> > > > > > Brian Bischof
> > >> > > > > > www.CrystalReportsBook.com
> > >> > > > > >
> > >> > > > > >
> > >> > > > > >
> > >> > > > > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in
> > > message
> > >> > > > > > news:%236jPVYfGFHA.3472@TK2MSFTNGP09.phx.gbl...
> > >> > > > > > > Those are good points. Let me look into the export[/color][/color][/color]
problem[color=blue]
> of[color=green][color=darkred]
> > >> not
> > >> > > > saving
> > >> > > > > > to
> > >> > > > > > > disk and see if I can get you an answer.
> > >> > > > > > >
> > >> > > > > > > Brian
> > >> > > > > > >
> > >> > > > > > >
> > >> > > > > > > "LP" <lp@a.com> wrote in message
> > >> > > > > > > news:%23VXeKbeGFHA.4088@TK2MSFTNGP09.phx.gbl...
> > >> > > > > > > > >The best practice is to use the
> > >> > > > > > > > > ReportDocument object model (unless working with
> > >> WebServices).
> > >> > > Try
> > >> > > > > > that
> > >> > > > > > > > and
> > >> > > > > > > > > post the results here.
> > >> > > > > > > >
> > >> > > > > > > > ReportDocument did work for me for postback problems.[/color][/color][/color]
But[color=blue]
> I[color=green][color=darkred]
> > >> also
> > >> > > > have
> > >> > > > > a
> > >> > > > > > > > button that exports report to excel and then sends this
> > >> > > > > > > > file
> > >> to
> > >> > a
> > >> > > > > client
> > >> > > > > > > > through HTTP. I could not get that to work with one
> > >> > parameterized
> > >> > > > > > report.
> > >> > > > > > > > Parameters don't seem to get cached with[/color][/color][/color]
reportdocument.[color=blue]
> I[color=green][color=darkred]
> > >> tried
> > >> > > my
> > >> > > > > > > > different things, like caching actuall ParamFields[/color][/color]
> object,[color=green][color=darkred]
> > >> etc.
> > >> > > but
> > >> > > > > > > nothing
> > >> > > > > > > > seems to work.
> > >> > > > > > > > I need this button because export in Crystal webviewer
> > >> > > > > > > > opens
> > > a
> > >> > > popup
> > >> > > > > > > window
> > >> > > > > > > > with no toolbars, so users can't save it to a file. If[/color][/color][/color]
I[color=blue][color=green][color=darkred]
> > > could
> > >> > > find
> > >> > > > > > > > workaround that, there would not be a need for this[/color][/color]
> custom[color=green][color=darkred]
> > >> > export
> > >> > > > > > button.
> > >> > > > > > > My
> > >> > > > > > > > biggest problem with Crystal right now is very simple[/color][/color][/color]
but[color=blue][color=green][color=darkred]
> > > yet
> > >> > > > > important
> > >> > > > > > > > things take so much time effort to do that it becomes
> > >> > questionanle
> > >> > > > if
> > >> > > > > > it's
> > >> > > > > > > > all worth it. And default behavior of Crystal is just
> > > bizarre
> > >> > like
> > >> > > > > > opening
> > >> > > > > > > a
> > >> > > > > > > > popup with no toolbars when exporting to another[/color][/color][/color]
format,[color=blue]
> so[color=green][color=darkred]
> > >> file
> > >> > > > can't
> > >> > > > > > be
> > >> > > > > > > > "save as"
> > >> > > > > > > >
> > >> > > > > > > >
> > >> > > > > > > >
> > >> > > > > > > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote[/color][/color][/color]
in[color=blue][color=green][color=darkred]
> > >> > message
> > >> > > > > > > > news:%230b8BKdGFHA.2976@TK2MSFTNGP09.phx.gbl...
> > >> > > > > > > > > I agree about the confusing API. Have you seen my
> > >> > > > > > > > > existing
> > >> > book,
> > >> > > > > > > "Crystal
> > >> > > > > > > > > Reports .NET Programming"? It teaches you how to use[/color][/color]
> the[color=green][color=darkred]
> > >> .NET
> > >> > > > object
> > >> > > > > > > model
> > >> > > > > > > > > and has many tips and tricks for getting it to work.
> > > Anyway,
> > >> > it
> > >> > > > only
> > >> > > > > > > > touches
> > >> > > > > > > > > on the RAS and RDC programming a bit (I don't know if
> > > using
> > >> > that
> > >> > > > or
> > >> > > > > > > not).
> > >> > > > > > > > > I'm going to do another book which is hardcore RAS
> > >> programming
> > >> > > > > because
> > >> > > > > > > RAS
> > >> > > > > > > > > is extremely complicated to learn and program with..[/color][/color]
> But[color=green][color=darkred]
> > >> that
> > >> > > > won't
> > >> > > > > be
> > >> > > > > > > > till
> > >> > > > > > > > > after I finish the CR XI book I'm working on now.
> > >> > > > > > > > >
> > >> > > > > > > > > Anyway, to answer your question, the mistake most[/color][/color]
> people[color=green][color=darkred]
> > >> make
> > >> > is
> > >> > > > > that
> > >> > > > > > > they
> > >> > > > > > > > > mix up the viewer object model with the report object
> > > model.
> > >> > > They
> > >> > > > > set
> > >> > > > > > > some
> > >> > > > > > > > > properties using one object and set other properties
> > >> > > > > > > > > using
> > >> the
> > >> > > > other
> > >> > > > > > > > object
> > >> > > > > > > > > model. Then they get consfused when some of the
> > >> > > > > > > > > properties
> > >> get
> > >> > > > > > dropped.
> > >> > > > > > > > You
> > >> > > > > > > > > can only use ONE object model at a time. The best
> > >> > > > > > > > > practice
> > >> is
> > >> > to
> > >> > > > use
> > >> > > > > > the
> > >> > > > > > > > > ReportDocument object model (unless working with
> > >> WebServices).
> > >> > > Try
> > >> > > > > > that
> > >> > > > > > > > and
> > >> > > > > > > > > post the results here.
> > >> > > > > > > > >
> > >> > > > > > > > > Brian Bischof
> > >> > > > > > > > > www.CrystalReportsBook.com
> > >> > > > > > > > >
> > >> > > > > > > > >
> > >> > > > > > > > >
> > >> > > > > > > > > "LP" <lp@a.com> wrote in message
> > >> > > > > > > > > news:eS$1FzVGFHA.3612@TK2MSFTNGP09.phx.gbl...
> > >> > > > > > > > > > Ok, I did change it to ReportDocument , and that[/color][/color]
> worked[color=green][color=darkred]
> > >> for
> > >> > me
> > >> > > > > even
> > >> > > > > > > > > without
> > >> > > > > > > > > > saving it to Session Variable. But now I am having
> > > another
> > >> > > > problem
> > >> > > > > > > with
> > >> > > > > > > > > > exporting. I have another button that export report[/color][/color]
> to[color=green][color=darkred]
> > >> excel
> > >> > > and
> > >> > > > > > sends
> > >> > > > > > > a
> > >> > > > > > > > > > file to a client, so now one parameterized report
> > > doesn't
> > >> > > work.
> > >> > > > I
> > >> > > > > > > tried
> > >> > > > > > > > > > saving reportDoc and it ParameterFields to session[/color][/color]
> and[color=green][color=darkred]
> > >> > > > retrieving,
> > >> > > > > > but
> > >> > > > > > > > > > nothing works.
> > >> > > > > > > > > > I think CR is a very good product, very sharp[/color][/color][/color]
looking[color=blue][color=green][color=darkred]
> > >> > reports
> > >> > > > > (when
> > >> > > > > > > you
> > >> > > > > > > > > get
> > >> > > > > > > > > > them to work), very slick designer especially[/color][/color][/color]
version[color=blue][color=green][color=darkred]
> > > XI.
> > >> > But
> > >> > > > > their
> > >> > > > > > > API
> > >> > > > > > > > > and
> > >> > > > > > > > > > object hierarchy is terribly confusing and[/color][/color]
> inconsistent[color=green][color=darkred]
> > >> with
> > >> > > > what
> > >> > > > > > one
> > >> > > > > > > > > would
> > >> > > > > > > > > > expect from .NET friendly product, I haven't seen[/color][/color][/color]
any[color=blue][color=green][color=darkred]
> > > good
> > >> > > > > > > documentation
> > >> > > > > > > > > on
> > >> > > > > > > > > > their APIs.
> > >> > > > > > > > > >
> > >> > > > > > > > > >
> > >> > > > > > > > > > "LP" <lp@a.com> wrote in message
> > >> > > > > > > > > > news:ezCf58UGFHA.1456@TK2MSFTNGP09.phx.gbl...
> > >> > > > > > > > > > > Brian, I am not using ReportDocument object, I am
> > >> setting
> > >> > > > > viewers
> > >> > > > > > > > > > > ReportSource to a report file directly:
> > >> > > > > > > > > > >
> > >> > > > > > > > > > > crViewer.ReportSource = Server.MapPath("Reports/"[/color][/color][/color]
&[color=blue][color=green][color=darkred]
> > >> > > > reportName)
> > >> > > > > > > > > > >
> > >> > > > > > > > > > > What should I do in this case?
> > >> > > > > > > > > > >
> > >> > > > > > > > > > >
> > >> > > > > > > > > > >
> > >> > > > > > > > > > > Thanks
> > >> > > > > > > > > > >
> > >> > > > > > > > > > >
> > >> > > > > > > > > > > "Brian Bischof" <Brian@NoSpamBischofSystems.com>
> > >> > > > > > > > > > > wrote
> > >> in
> > >> > > > > message
> > >> > > > > > > > > > > news:eQZxtDUGFHA.548@TK2MSFTNGP14.phx.gbl...
> > >> > > > > > > > > > > > You have to cache the report object. Save the
> > >> > > > > > > > > > > > report
> > >> > > object
> > >> > > > to
> > >> > > > > > the
> > >> > > > > > >
> > >> > > > > > > > > > > Session()
> > >> > > > > > > > > > > > collection and then restore it upon page[/color][/color][/color]
refresh[color=blue][color=green][color=darkred]
> > >> > > > > > > > > > > > (be
> > >> > sure
> > >> > > to
> > >> > > > > > > > explicity
> > >> > > > > > > > > > > cast
> > >> > > > > > > > > > > > it as a ReportDocument). ASP.NET reports do all
> > > kinds
> > >> of
> > >> > > > funny
> > >> > > > > > > > things
> > >> > > > > > > > > if
> > >> > > > > > > > > > > you
> > >> > > > > > > > > > > > don't save them between page refreshes.
> > >> > > > > > > > > > > >
> > >> > > > > > > > > > > > HTH,
> > >> > > > > > > > > > > >
> > >> > > > > > > > > > > > Brian Bischof
> > >> > > > > > > > > > > > www.CrystalReportsBook.com
> > >> > > > > > > > > > > >
> > >> > > > > > > > > > > >
> > >> > > > > > > > > > > >
> > >> > > > > > > > > > > > "LP" <lp@a.com> wrote in message
> > >> > > > > > > > > > > > news:OgS0FtTGFHA.2876@TK2MSFTNGP12.phx.gbl...
> > >> > > > > > > > > > > > > I am using (trying to) CR version XI,[/color][/color][/color]
cascading[color=blue][color=green][color=darkred]
> > >> > > parameters
> > >> > > > > > > feature
> > >> > > > > > > > > > works
> > >> > > > > > > > > > > > it
> > >> > > > > > > > > > > > > asks user to enter params. But if page is
> > >> resubmitted.
> > >> > > It
> > >> > > > > > > prompts
> > >> > > > > > > > > for
> > >> > > > > > > > > > > > params
> > >> > > > > > > > > > > > > again. I did set
> > >> ReuseParameterValuesOnRefresh="True"
> > >> > in
> > >> > > a
> > >> > > > > > > viewer,
> > >> > > > > > > > > but
> > >> > > > > > > > > > > it
> > >> > > > > > > > > > > > > still doesn't work. Did anyone run into this
> > >> problem.
> > >> > > > What's
> > >> > > > > > the
> > >> > > > > > > > > > > solution?
> > >> > > > > > > > > > > > > Please help.
> > >> > > > > > > > > > > > >
> > >> > > > > > > > > > > > > Thank you
> > >> > > > > > > > > > > > >
> > >> > > > > > > > > > > > >
> > >> > > > > > > > > > > >
> > >> > > > > > > > > > > >
> > >> > > > > > > > > > >
> > >> > > > > > > > > > >
> > >> > > > > > > > > >
> > >> > > > > > > > > >
> > >> > > > > > > > >
> > >> > > > > > > > >
> > >> > > > > > > >
> > >> > > > > > > >
> > >> > > > > > >
> > >> > > > > > >
> > >> > > > > >
> > >> > > > > >
> > >> > > > >
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > > >
> > >> > >
> > >> > >
> > >> >
> > >> >
> > >>
> > >>
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


LP
Guest
 
Posts: n/a
#19: Nov 19 '05

re: Crystal Reports Cascading parameters don't get preserved between postbacks


Brian, Wow!!! It worked!!!
Thanks a lot for getting this one resolved.


"Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
news:unGLFssGFHA.2504@TK2MSFTNGP10.phx.gbl...[color=blue]
> After playing around with this it seems to work really well. In fact, I'm
> even able to get the Excel export to open in Excel with a full toolbar. I
> feel so much better now. Here is the resolution email. Play around with[/color]
the[color=blue]
> different checkboxes to get different results. This email is from the guy
> that wrote the XI toolbar export functionality!
>
> HTH,
>
> Brian Bischof
> www.CrystalReportsBook.com
>
>
> -------------------
> It sounds like the exporting is done through the viewer toolbar in a[/color]
webform[color=blue]
> viewer. The behavior is generic for IE and depends on whether user has
> disabled the confirmation dialog, and whether the file is sent as
> attachment. We send exported files inline, not as attachment, when
> exporting through the viewer. You can change this behavior by adjusting[/color]
the[color=blue]
> user setting as below.
>
> 1. Open an Explorer window.
> 2. Select Tools | Folder Options (assuming Windows XP).
> 3. Select File Types tab.
> 4. Find the appropriate file type, click Advanced button.
> 5. Ensure "Confirm open after download" is checked.
>
> There is a new method on ReportDocument.ExportToHttpResponse for[/color]
developers[color=blue]
> to control whether the exported file is sent as attachment.
>
> I suspect the toolbar problem is because we turned off the IE menu in that
> export window. There is no way to turn the menu on at this time.
>
> -------------------
>
>
> "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
> news:eDKeGKsGFHA.2620@tk2msftngp13.phx.gbl...[color=green]
> > I'm glad we are providing entertainment for everyone. ;-)
> >
> > It's not a code problem. The problem is the ASP.NET viewer toolbar in[/color][/color]
XI.[color=blue][color=green]
> > The ironic thing is that I sent two emails to tech support and they were
> > thinking I was talking about the code too. Anyway, I heard back from a
> > support guy and he says that this behavior is controlled through the[/color][/color]
File[color=blue][color=green]
> > Types dialog box in Windows Explorer. I'm going to look into it and post[/color]
> his[color=green]
> > full response once I check it out.
> >
> > Oh yeah - re the Save/Open dialog box behavior, yes I get it for all[/color][/color]
file[color=blue][color=green]
> > types including Excel and Word. Anyway, I should be posting the[/color][/color]
resolution[color=blue][color=green]
> > shortly, and then we can all get back to our normal jobs! :-)
> >
> >
> > Brian
> > www.CrystalReportsBook.com
> >
> >
> >
> >
> >
> > "Rob Diamant" <rob@usi.com> wrote in message
> > news:Owurl%23rGFHA.3088@tk2msftngp13.phx.gbl...[color=darkred]
> > > Guys,
> > >
> > > I have been following this thread for a while (it's entertaining, I[/color][/color]
> can't[color=green][color=darkred]
> > > wait for the finish) and was wondering what code is behind LP's Export
> > > Button that may be different then Brian's. Maybe you guys should[/color][/color]
> compare.[color=green][color=darkred]
> > >
> > > Rob
> > >
> > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
> > > news:%23HXLxMrGFHA.3504@TK2MSFTNGP10.phx.gbl...
> > > > Man, we are really going around in circles about this one. I still[/color][/color][/color]
say[color=blue][color=green][color=darkred]
> > > > it's
> > > > a browser issue and not a Crystal problem. For example, if I go into[/color][/color]
> my[color=green][color=darkred]
> > > > browser and tell it to display large fonts, I can't then send emails[/color][/color]
> to[color=green][color=darkred]
> > > > every website I visit complaining that their web designers should[/color][/color][/color]
use[color=blue][color=green][color=darkred]
> > > > smaller fonts. On my browser I get the Open/Save dialog box that you[/color]
> > don't[color=darkred]
> > > > get and I also see an option to turn it off. Thus, it works fine on[/color][/color][/color]
my[color=blue][color=green][color=darkred]
> > > > browser and it appears to be a browser controlled setting. So how[/color][/color]
> could[color=green]
> > it[color=darkred]
> > > > be a Crystal problem?
> > > >
> > > > That being said, I have no clue about how the Header record effects[/color][/color]
> what[color=green][color=darkred]
> > > > the
> > > > browser does. Maybe Crystal is using a Header record that makes the
> > > > Open/Save dialog box optional? Maybe their header record is only
> > > > compatible
> > > > with certain browser versions and doesn't work with others? I don't[/color]
> > know.[color=darkred]
> > > > This whole thing is getting very frustrating and I'm determined to[/color]
> > figure[color=darkred]
> > > > out what the heck is going on. Having it work one way in one browser[/color][/color]
> and[color=green][color=darkred]
> > > > another way in another browser and having no idea why is driving me[/color]
> > crazy.[color=darkred]
> > > > Somewhere there has to be a reasonable explanation for this problem[/color][/color]
> you[color=green][color=darkred]
> > > > are
> > > > having.
> > > >
> > > > Brian
> > > >
> > > >
> > > >
> > > > "LP" <lp@a.com> wrote in message
> > > > news:O$f8zSqGFHA.3312@TK2MSFTNGP10.phx.gbl...
> > > >> > For example, I can go into Adobe Properties
> > > >> > and turn this on and off using one of their options. When that[/color][/color]
> dialog[color=green][color=darkred]
> > > > box
> > > >> > opens, there is a checkbox at the bottom about whether you[/color][/color][/color]
should[color=blue]
> be[color=green][color=darkred]
> > > >> > prompted with this box again or just open the file directly.
> > > >>
> > > >> You are tweaking Adobe settings not the browser.
> > > >>
> > > >> >Thus, this is a
> > > >> > browser setting.
> > > >> No, it's Adobe setting.
> > > >>
> > > >> I can't find similar setting in browser or Excel Word either. And[/color][/color]
> again[color=green][color=darkred]
> > > > lets
> > > >> assume it's a browser setting, but that would default behavior of a
> > > > browser.
> > > >> So by default CR export functionality is unusable. I don't[/color][/color][/color]
understand[color=blue][color=green]
> > how[color=darkred]
> > > > CR
> > > >> vendor (BusinessObjects as of today) could not see that someone[/color][/color][/color]
would[color=blue][color=green][color=darkred]
> > > >> actually want to save exported file, not just look at it in a popup
> > > > window.
> > > >> When I get a chance, I'll look into how to filter HTML rendered by[/color][/color][/color]
CR[color=blue][color=green]
> > and[color=darkred]
> > > >> modify it to enable save as functionality.
> > > >>
> > > >>
> > > >> "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
> > > >> news:%23mI5GUpGFHA.3312@TK2MSFTNGP10.phx.gbl...
> > > >> > Ok, that's what I thought. I think that is a browser issue b/c I[/color][/color]
> was[color=green][color=darkred]
> > > > able
> > > >> to
> > > >> > toggle this feature on and off. For example, I can go into Adobe
> > > >> Properties
> > > >> > and turn this on and off using one of their options. When that[/color][/color]
> dialog[color=green][color=darkred]
> > > > box
> > > >> > opens, there is a checkbox at the bottom about whether you[/color][/color][/color]
should[color=blue]
> be[color=green][color=darkred]
> > > >> > prompted with this box again or just open the file directly.[/color][/color][/color]
Thus,[color=blue][color=green]
> > this[color=darkred]
> > > > is
> > > >> a
> > > >> > browser setting. The header doesn't control it b/c on my computer[/color][/color][/color]
I[color=blue][color=green]
> > was[color=darkred]
> > > >> able
> > > >> > to get the dialog box to come up or send it directly to a browser
> > > >> > window
> > > >> > using and Adobe Properties setting. I would search Google to see[/color][/color]
> how[color=green]
> > to[color=darkred]
> > > >> turn
> > > >> > this on or off.
> > > >> >
> > > >> > Brian
> > > >> >
> > > >> >
> > > >> >
> > > >> > "LP" <lp@a.com> wrote in message
> > > >> > news:erPQ26oGFHA.1176@TK2MSFTNGP12.phx.gbl...
> > > >> > > > Are you saying that you don't get the Open/Save dialog box or[/color][/color]
> you[color=green][color=darkred]
> > > >> > > > do
> > > >> get
> > > >> > > it?
> > > >> > >
> > > >> > > I do NOT get it. When I click export icon it opens a popup[/color][/color][/color]
window[color=blue][color=green][color=darkred]
> > > >> > > with
> > > >> > > Excel, or Word embedded in the window, but no toolbars no[/color][/color][/color]
nothing[color=blue][color=green]
> > and[color=darkred]
> > > >> > > certainly NO "Save as" dialog box. If you could come up with a[/color][/color]
> way[color=green]
> > to[color=darkred]
> > > >> > > provide users with ability to "save as" what's embedded inside[/color][/color][/color]
a[color=blue][color=green][color=darkred]
> > > > popup,
> > > >> I
> > > >> > > would greatly appreciate it.
> > > >> > >
> > > >> > > Thanks
> > > >> > >
> > > >> > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in[/color][/color][/color]
message[color=blue][color=green][color=darkred]
> > > >> > > news:%23vaVMUjGFHA.1096@tk2msftngp13.phx.gbl...
> > > >> > > > Are you saying that you don't get the Open/Save dialog box or[/color][/color]
> you[color=green][color=darkred]
> > > >> > > > do
> > > >> get
> > > >> > > it?
> > > >> > > > It seems that you don't get it at all. I get it on my[/color][/color][/color]
computer[color=blue][color=green]
> > and[color=darkred]
> > > >> > > > I
> > > >> > think
> > > >> > > > this is a browser issue. As I said earlier, I was able to[/color][/color][/color]
turn[color=blue][color=green][color=darkred]
> > > >> > > > enable/disable it using a PDF option. The second issue of the
> > > > toolbar
> > > >> > not
> > > >> > > > having the Save buttons could be a header issue. I'm not
> > > > knowledgeable
> > > >> > > about
> > > >> > > > HTML headers but it does make sense that the header tags can
> > > >> > > > control
> > > >> > this.
> > > >> > > I
> > > >> > > > will have to research that tomorrow.
> > > >> > > >
> > > >> > > > Brian Bischof
> > > >> > > > www.CrystalReportsBook.com
> > > >> > > >
> > > >> > > >
> > > >> > > >
> > > >> > > > "LP" <lp@a.com> wrote in message
> > > >> > > > news:%23GkSYeiGFHA.2620@tk2msftngp13.phx.gbl...
> > > >> > > > > Brian, Thanks for looking into this for me.
> > > >> > > > > I think you understand my problem. But just to be clear:
> > > >> > > > > When I click export button of a webviewer, it does open a[/color][/color]
> popup[color=green][color=darkred]
> > > >> window
> > > >> > > and
> > > >> > > > > loads excel, word, etc. into the window. But there's no[/color][/color]
> obvious[color=green][color=darkred]
> > > > way
> > > >> to
> > > >> > > > save
> > > >> > > > > it to a local drive as a file (other than copy and paste)[/color][/color]
> And,[color=green][color=darkred]
> > > > yes,
> > > >> > you
> > > >> > > > are
> > > >> > > > > right PDF is the only format with a toolbar that has "save[/color][/color]
> as"[color=green][color=darkred]
> > > > icon.
> > > >> > But
> > > >> > > I
> > > >> > > > > think it's part of PDF object embedded within a browser. I[/color][/color]
> also[color=green][color=darkred]
> > > >> looked
> > > >> > > in
> > > >> > > > > browser settings to make it open "save as" dialog box, but[/color]
> > could[color=darkred]
> > > > not
> > > >> > > find
> > > >> > > > > anything.
> > > >> > > > > But I begin to doubt that it is a browser issue like you
> > > > suggesting.
> > > >> I
> > > >> > > > think
> > > >> > > > > this behavior is controlled by HTTP header tags. I know[/color][/color][/color]
that[color=blue][color=green][color=darkred]
> > > > there's
> > > >> a
> > > >> > > > > header tag content-type (or something like that) where you[/color][/color]
> can[color=green][color=darkred]
> > > >> specify
> > > >> > > > > ms-excel, ms-word, etc. And there's also "attachment;[/color]
> > filename="[color=darkred]
> > > > tag
> > > >> > > where
> > > >> > > > > you can give file name and browser then will prompt you to[/color][/color]
> save[color=green][color=darkred]
> > > >> > > > > or
> > > >> > open
> > > >> > > > that
> > > >> > > > > file. So, I do think it's the way CR not providing the[/color][/color][/color]
right[color=blue][color=green]
> > HTTP[color=darkred]
> > > >> > header
> > > >> > > > > tags for the popup is a root of the problem. So, I am[/color][/color]
> thinking[color=green]
> > of[color=darkred]
> > > >> > > > > intercepting CR rendered HTML and modifying it, but I[/color][/color][/color]
haven't[color=blue][color=green]
> > had[color=darkred]
> > > >> any
> > > >> > > time
> > > >> > > > > to do anything serious like that, after all I am just[/color][/color]
> building[color=green]
> > a[color=darkred]
> > > >> demo
> > > >> > > app.
> > > >> > > > > Let me know if you find anything else, or if I am on the[/color][/color]
> right[color=green][color=darkred]
> > > >> track.
> > > >> > > > >
> > > >> > > > > Thank you again for your input.
> > > >> > > > >
> > > >> > > > >
> > > >> > > > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in[/color]
> > message[color=darkred]
> > > >> > > > > news:%23rZC84fGFHA.2524@TK2MSFTNGP15.phx.gbl...
> > > >> > > > > > Hmmm. I'm looking over all your posts. The first post you[/color][/color]
> had[color=green][color=darkred]
> > > > last
> > > >> > > week
> > > >> > > > > said
> > > >> > > > > > that you couldn't get the Save As dialog box to open.[/color]
> > Instead,[color=darkred]
> > > > it
> > > >> > > always
> > > >> > > > > > spawned a new window. Now it seems that when you are in[/color][/color][/color]
the[color=blue][color=green]
> > new[color=darkred]
> > > >> > window
> > > >> > > > it
> > > >> > > > > > won't allow saving the data. I assume this is a direct[/color][/color]
> result[color=green][color=darkred]
> > > >> > > > > > of
> > > >> not
> > > >> > > > being
> > > >> > > > > > able to solve the first problem. So here are my comments.
> > > >> > > > > >
> > > >> > > > > > First is that if the export button doesn't open the[/color][/color]
> Save/Open[color=green][color=darkred]
> > > >> dialog
> > > >> > > > box,
> > > >> > > > > > then I think it's a browser issue. For example, at the[/color][/color]
> bottom[color=green][color=darkred]
> > > >> > > > > > of
> > > >> the
> > > >> > > > > dialog
> > > >> > > > > > box is a checkbox telling whether it should prompt you[/color][/color][/color]
with[color=blue][color=green][color=darkred]
> > > >> > > > > > this
> > > >> or
> > > >> > > not.
> > > >> > > > I
> > > >> > > > > > played around with it for Excel and Word but this had no
> > > >> > > > > > effect.
> > > > I
> > > >> > did
> > > >> > > > > find
> > > >> > > > > > out that I can change this with Adobe inside the Adobe[/color]
> > Internet[color=darkred]
> > > >> > > > > preferences.
> > > >> > > > > > After fixing that I got the Open/Save box for PDFs again.[/color][/color][/color]
I[color=blue][color=green][color=darkred]
> > > > looked
> > > >> > in
> > > >> > > > > > preferences for Excel/Word and couldn't find such an[/color][/color]
> option.[color=green][color=darkred]
> > > > Thus,
> > > >> > the
> > > >> > > > PDF
> > > >> > > > > > option makes me think that the browser is controlling[/color][/color][/color]
this[color=blue][color=green]
> > and[color=darkred]
> > > > not
> > > >> > CR
> > > >> > > > XI.
> > > >> > > > > > Overall, I have the Open/Save dialog popping up for all[/color][/color]
> file[color=green][color=darkred]
> > > > types
> > > >> > in
> > > >> > > my
> > > >> > > > > > brower and you should be able to get them too.
> > > >> > > > > >
> > > >> > > > > > Re the Excel and Word browsers not letting you save data,[/color]
> > this[color=darkred]
> > > > is
> > > >> > > > > happening
> > > >> > > > > > with my computer as well. However, again I have to[/color][/color][/color]
question[color=blue][color=green]
> > if[color=darkred]
> > > >> this
> > > >> > is
> > > >> > > a
> > > >> > > > > > browser issue or a CR XI issue since XI is just sending[/color][/color][/color]
the[color=blue][color=green]
> > XLS[color=darkred]
> > > >> file
> > > >> > > to
> > > >> > > > > the
> > > >> > > > > > browser. I'll continue to play with it b/c I don't know[/color][/color][/color]
the[color=blue][color=green][color=darkred]
> > > > answer
> > > >> > to
> > > >> > > > this
> > > >> > > > > > one yet. But I think your best bet is to look at the[/color][/color][/color]
first[color=blue][color=green][color=darkred]
> > > >> > > > > > issue
> > > >> and
> > > >> > > get
> > > >> > > > > the
> > > >> > > > > > Open/Save dialog box to pop up by tweaking the IE[/color][/color][/color]
settings.[color=blue][color=green][color=darkred]
> > > >> > > > > >
> > > >> > > > > > HTH,
> > > >> > > > > >
> > > >> > > > > > Brian Bischof
> > > >> > > > > > www.CrystalReportsBook.com
> > > >> > > > > >
> > > >> > > > > >
> > > >> > > > > >
> > > >> > > > > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in
> > > > message
> > > >> > > > > > news:%236jPVYfGFHA.3472@TK2MSFTNGP09.phx.gbl...
> > > >> > > > > > > Those are good points. Let me look into the export[/color][/color]
> problem[color=green]
> > of[color=darkred]
> > > >> not
> > > >> > > > saving
> > > >> > > > > > to
> > > >> > > > > > > disk and see if I can get you an answer.
> > > >> > > > > > >
> > > >> > > > > > > Brian
> > > >> > > > > > >
> > > >> > > > > > >
> > > >> > > > > > > "LP" <lp@a.com> wrote in message
> > > >> > > > > > > news:%23VXeKbeGFHA.4088@TK2MSFTNGP09.phx.gbl...
> > > >> > > > > > > > >The best practice is to use the
> > > >> > > > > > > > > ReportDocument object model (unless working with
> > > >> WebServices).
> > > >> > > Try
> > > >> > > > > > that
> > > >> > > > > > > > and
> > > >> > > > > > > > > post the results here.
> > > >> > > > > > > >
> > > >> > > > > > > > ReportDocument did work for me for postback problems.[/color][/color]
> But[color=green]
> > I[color=darkred]
> > > >> also
> > > >> > > > have
> > > >> > > > > a
> > > >> > > > > > > > button that exports report to excel and then sends[/color][/color][/color]
this[color=blue][color=green][color=darkred]
> > > >> > > > > > > > file
> > > >> to
> > > >> > a
> > > >> > > > > client
> > > >> > > > > > > > through HTTP. I could not get that to work with one
> > > >> > parameterized
> > > >> > > > > > report.
> > > >> > > > > > > > Parameters don't seem to get cached with[/color][/color]
> reportdocument.[color=green]
> > I[color=darkred]
> > > >> tried
> > > >> > > my
> > > >> > > > > > > > different things, like caching actuall ParamFields[/color]
> > object,[color=darkred]
> > > >> etc.
> > > >> > > but
> > > >> > > > > > > nothing
> > > >> > > > > > > > seems to work.
> > > >> > > > > > > > I need this button because export in Crystal[/color][/color][/color]
webviewer[color=blue][color=green][color=darkred]
> > > >> > > > > > > > opens
> > > > a
> > > >> > > popup
> > > >> > > > > > > window
> > > >> > > > > > > > with no toolbars, so users can't save it to a file.[/color][/color][/color]
If[color=blue]
> I[color=green][color=darkred]
> > > > could
> > > >> > > find
> > > >> > > > > > > > workaround that, there would not be a need for this[/color]
> > custom[color=darkred]
> > > >> > export
> > > >> > > > > > button.
> > > >> > > > > > > My
> > > >> > > > > > > > biggest problem with Crystal right now is very simple[/color][/color]
> but[color=green][color=darkred]
> > > > yet
> > > >> > > > > important
> > > >> > > > > > > > things take so much time effort to do that it becomes
> > > >> > questionanle
> > > >> > > > if
> > > >> > > > > > it's
> > > >> > > > > > > > all worth it. And default behavior of Crystal is just
> > > > bizarre
> > > >> > like
> > > >> > > > > > opening
> > > >> > > > > > > a
> > > >> > > > > > > > popup with no toolbars when exporting to another[/color][/color]
> format,[color=green]
> > so[color=darkred]
> > > >> file
> > > >> > > > can't
> > > >> > > > > > be
> > > >> > > > > > > > "save as"
> > > >> > > > > > > >
> > > >> > > > > > > >
> > > >> > > > > > > >
> > > >> > > > > > > > "Brian Bischof" <Brian@NoSpamBischofSystems.com>[/color][/color][/color]
wrote[color=blue]
> in[color=green][color=darkred]
> > > >> > message
> > > >> > > > > > > > news:%230b8BKdGFHA.2976@TK2MSFTNGP09.phx.gbl...
> > > >> > > > > > > > > I agree about the confusing API. Have you seen my
> > > >> > > > > > > > > existing
> > > >> > book,
> > > >> > > > > > > "Crystal
> > > >> > > > > > > > > Reports .NET Programming"? It teaches you how to[/color][/color][/color]
use[color=blue][color=green]
> > the[color=darkred]
> > > >> .NET
> > > >> > > > object
> > > >> > > > > > > model
> > > >> > > > > > > > > and has many tips and tricks for getting it to[/color][/color][/color]
work.[color=blue][color=green][color=darkred]
> > > > Anyway,
> > > >> > it
> > > >> > > > only
> > > >> > > > > > > > touches
> > > >> > > > > > > > > on the RAS and RDC programming a bit (I don't know[/color][/color][/color]
if[color=blue][color=green][color=darkred]
> > > > using
> > > >> > that
> > > >> > > > or
> > > >> > > > > > > not).
> > > >> > > > > > > > > I'm going to do another book which is hardcore RAS
> > > >> programming
> > > >> > > > > because
> > > >> > > > > > > RAS
> > > >> > > > > > > > > is extremely complicated to learn and program[/color][/color][/color]
with..[color=blue][color=green]
> > But[color=darkred]
> > > >> that
> > > >> > > > won't
> > > >> > > > > be
> > > >> > > > > > > > till
> > > >> > > > > > > > > after I finish the CR XI book I'm working on now.
> > > >> > > > > > > > >
> > > >> > > > > > > > > Anyway, to answer your question, the mistake most[/color]
> > people[color=darkred]
> > > >> make
> > > >> > is
> > > >> > > > > that
> > > >> > > > > > > they
> > > >> > > > > > > > > mix up the viewer object model with the report[/color][/color][/color]
object[color=blue][color=green][color=darkred]
> > > > model.
> > > >> > > They
> > > >> > > > > set
> > > >> > > > > > > some
> > > >> > > > > > > > > properties using one object and set other[/color][/color][/color]
properties[color=blue][color=green][color=darkred]
> > > >> > > > > > > > > using
> > > >> the
> > > >> > > > other
> > > >> > > > > > > > object
> > > >> > > > > > > > > model. Then they get consfused when some of the
> > > >> > > > > > > > > properties
> > > >> get
> > > >> > > > > > dropped.
> > > >> > > > > > > > You
> > > >> > > > > > > > > can only use ONE object model at a time. The best
> > > >> > > > > > > > > practice
> > > >> is
> > > >> > to
> > > >> > > > use
> > > >> > > > > > the
> > > >> > > > > > > > > ReportDocument object model (unless working with
> > > >> WebServices).
> > > >> > > Try
> > > >> > > > > > that
> > > >> > > > > > > > and
> > > >> > > > > > > > > post the results here.
> > > >> > > > > > > > >
> > > >> > > > > > > > > Brian Bischof
> > > >> > > > > > > > > www.CrystalReportsBook.com
> > > >> > > > > > > > >
> > > >> > > > > > > > >
> > > >> > > > > > > > >
> > > >> > > > > > > > > "LP" <lp@a.com> wrote in message
> > > >> > > > > > > > > news:eS$1FzVGFHA.3612@TK2MSFTNGP09.phx.gbl...
> > > >> > > > > > > > > > Ok, I did change it to ReportDocument , and that[/color]
> > worked[color=darkred]
> > > >> for
> > > >> > me
> > > >> > > > > even
> > > >> > > > > > > > > without
> > > >> > > > > > > > > > saving it to Session Variable. But now I am[/color][/color][/color]
having[color=blue][color=green][color=darkred]
> > > > another
> > > >> > > > problem
> > > >> > > > > > > with
> > > >> > > > > > > > > > exporting. I have another button that export[/color][/color][/color]
report[color=blue][color=green]
> > to[color=darkred]
> > > >> excel
> > > >> > > and
> > > >> > > > > > sends
> > > >> > > > > > > a
> > > >> > > > > > > > > > file to a client, so now one parameterized report
> > > > doesn't
> > > >> > > work.
> > > >> > > > I
> > > >> > > > > > > tried
> > > >> > > > > > > > > > saving reportDoc and it ParameterFields to[/color][/color][/color]
session[color=blue][color=green]
> > and[color=darkred]
> > > >> > > > retrieving,
> > > >> > > > > > but
> > > >> > > > > > > > > > nothing works.
> > > >> > > > > > > > > > I think CR is a very good product, very sharp[/color][/color]
> looking[color=green][color=darkred]
> > > >> > reports
> > > >> > > > > (when
> > > >> > > > > > > you
> > > >> > > > > > > > > get
> > > >> > > > > > > > > > them to work), very slick designer especially[/color][/color]
> version[color=green][color=darkred]
> > > > XI.
> > > >> > But
> > > >> > > > > their
> > > >> > > > > > > API
> > > >> > > > > > > > > and
> > > >> > > > > > > > > > object hierarchy is terribly confusing and[/color]
> > inconsistent[color=darkred]
> > > >> with
> > > >> > > > what
> > > >> > > > > > one
> > > >> > > > > > > > > would
> > > >> > > > > > > > > > expect from .NET friendly product, I haven't seen[/color][/color]
> any[color=green][color=darkred]
> > > > good
> > > >> > > > > > > documentation
> > > >> > > > > > > > > on
> > > >> > > > > > > > > > their APIs.
> > > >> > > > > > > > > >
> > > >> > > > > > > > > >
> > > >> > > > > > > > > > "LP" <lp@a.com> wrote in message
> > > >> > > > > > > > > > news:ezCf58UGFHA.1456@TK2MSFTNGP09.phx.gbl...
> > > >> > > > > > > > > > > Brian, I am not using ReportDocument object, I[/color][/color][/color]
am[color=blue][color=green][color=darkred]
> > > >> setting
> > > >> > > > > viewers
> > > >> > > > > > > > > > > ReportSource to a report file directly:
> > > >> > > > > > > > > > >
> > > >> > > > > > > > > > > crViewer.ReportSource =[/color][/color][/color]
Server.MapPath("Reports/"[color=blue]
> &[color=green][color=darkred]
> > > >> > > > reportName)
> > > >> > > > > > > > > > >
> > > >> > > > > > > > > > > What should I do in this case?
> > > >> > > > > > > > > > >
> > > >> > > > > > > > > > >
> > > >> > > > > > > > > > >
> > > >> > > > > > > > > > > Thanks
> > > >> > > > > > > > > > >
> > > >> > > > > > > > > > >
> > > >> > > > > > > > > > > "Brian Bischof"[/color][/color][/color]
<Brian@NoSpamBischofSystems.com>[color=blue][color=green][color=darkred]
> > > >> > > > > > > > > > > wrote
> > > >> in
> > > >> > > > > message
> > > >> > > > > > > > > > > news:eQZxtDUGFHA.548@TK2MSFTNGP14.phx.gbl...
> > > >> > > > > > > > > > > > You have to cache the report object. Save the
> > > >> > > > > > > > > > > > report
> > > >> > > object
> > > >> > > > to
> > > >> > > > > > the
> > > >> > > > > > >
> > > >> > > > > > > > > > > Session()
> > > >> > > > > > > > > > > > collection and then restore it upon page[/color][/color]
> refresh[color=green][color=darkred]
> > > >> > > > > > > > > > > > (be
> > > >> > sure
> > > >> > > to
> > > >> > > > > > > > explicity
> > > >> > > > > > > > > > > cast
> > > >> > > > > > > > > > > > it as a ReportDocument). ASP.NET reports do[/color][/color][/color]
all[color=blue][color=green][color=darkred]
> > > > kinds
> > > >> of
> > > >> > > > funny
> > > >> > > > > > > > things
> > > >> > > > > > > > > if
> > > >> > > > > > > > > > > you
> > > >> > > > > > > > > > > > don't save them between page refreshes.
> > > >> > > > > > > > > > > >
> > > >> > > > > > > > > > > > HTH,
> > > >> > > > > > > > > > > >
> > > >> > > > > > > > > > > > Brian Bischof
> > > >> > > > > > > > > > > > www.CrystalReportsBook.com
> > > >> > > > > > > > > > > >
> > > >> > > > > > > > > > > >
> > > >> > > > > > > > > > > >
> > > >> > > > > > > > > > > > "LP" <lp@a.com> wrote in message
> > > >> > > > > > > > > > > > news:OgS0FtTGFHA.2876@TK2MSFTNGP12.phx.gbl...
> > > >> > > > > > > > > > > > > I am using (trying to) CR version XI,[/color][/color]
> cascading[color=green][color=darkred]
> > > >> > > parameters
> > > >> > > > > > > feature
> > > >> > > > > > > > > > works
> > > >> > > > > > > > > > > > it
> > > >> > > > > > > > > > > > > asks user to enter params. But if page is
> > > >> resubmitted.
> > > >> > > It
> > > >> > > > > > > prompts
> > > >> > > > > > > > > for
> > > >> > > > > > > > > > > > params
> > > >> > > > > > > > > > > > > again. I did set
> > > >> ReuseParameterValuesOnRefresh="True"
> > > >> > in
> > > >> > > a
> > > >> > > > > > > viewer,
> > > >> > > > > > > > > but
> > > >> > > > > > > > > > > it
> > > >> > > > > > > > > > > > > still doesn't work. Did anyone run into[/color][/color][/color]
this[color=blue][color=green][color=darkred]
> > > >> problem.
> > > >> > > > What's
> > > >> > > > > > the
> > > >> > > > > > > > > > > solution?
> > > >> > > > > > > > > > > > > Please help.
> > > >> > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > Thank you
> > > >> > > > > > > > > > > > >
> > > >> > > > > > > > > > > > >
> > > >> > > > > > > > > > > >
> > > >> > > > > > > > > > > >
> > > >> > > > > > > > > > >
> > > >> > > > > > > > > > >
> > > >> > > > > > > > > >
> > > >> > > > > > > > > >
> > > >> > > > > > > > >
> > > >> > > > > > > > >
> > > >> > > > > > > >
> > > >> > > > > > > >
> > > >> > > > > > >
> > > >> > > > > > >
> > > >> > > > > >
> > > >> > > > > >
> > > >> > > > >
> > > >> > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> > >
> > > >> >
> > > >> >
> > > >>
> > > >>
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


Brian Bischof
Guest
 
Posts: n/a
#20: Nov 19 '05

re: Crystal Reports Cascading parameters don't get preserved between postbacks


Pop open the champagne! It's time to celebrate!!!!!

:-D



"LP" <lp@a.com> wrote in message
news:%23ZDLAHtGFHA.2360@TK2MSFTNGP12.phx.gbl...[color=blue]
> Brian, Wow!!! It worked!!!
> Thanks a lot for getting this one resolved.
>
>
> "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
> news:unGLFssGFHA.2504@TK2MSFTNGP10.phx.gbl...[color=green]
> > After playing around with this it seems to work really well. In fact,[/color][/color]
I'm[color=blue][color=green]
> > even able to get the Excel export to open in Excel with a full toolbar.[/color][/color]
I[color=blue][color=green]
> > feel so much better now. Here is the resolution email. Play around with[/color]
> the[color=green]
> > different checkboxes to get different results. This email is from the[/color][/color]
guy[color=blue][color=green]
> > that wrote the XI toolbar export functionality!
> >
> > HTH,
> >
> > Brian Bischof
> > www.CrystalReportsBook.com
> >
> >
> > -------------------
> > It sounds like the exporting is done through the viewer toolbar in a[/color]
> webform[color=green]
> > viewer. The behavior is generic for IE and depends on whether user has
> > disabled the confirmation dialog, and whether the file is sent as
> > attachment. We send exported files inline, not as attachment, when
> > exporting through the viewer. You can change this behavior by adjusting[/color]
> the[color=green]
> > user setting as below.
> >
> > 1. Open an Explorer window.
> > 2. Select Tools | Folder Options (assuming Windows XP).
> > 3. Select File Types tab.
> > 4. Find the appropriate file type, click Advanced button.
> > 5. Ensure "Confirm open after download" is checked.
> >
> > There is a new method on ReportDocument.ExportToHttpResponse for[/color]
> developers[color=green]
> > to control whether the exported file is sent as attachment.
> >
> > I suspect the toolbar problem is because we turned off the IE menu in[/color][/color]
that[color=blue][color=green]
> > export window. There is no way to turn the menu on at this time.
> >
> > -------------------
> >
> >
> > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
> > news:eDKeGKsGFHA.2620@tk2msftngp13.phx.gbl...[color=darkred]
> > > I'm glad we are providing entertainment for everyone. ;-)
> > >
> > > It's not a code problem. The problem is the ASP.NET viewer toolbar in[/color][/color]
> XI.[color=green][color=darkred]
> > > The ironic thing is that I sent two emails to tech support and they[/color][/color][/color]
were[color=blue][color=green][color=darkred]
> > > thinking I was talking about the code too. Anyway, I heard back from a
> > > support guy and he says that this behavior is controlled through the[/color][/color]
> File[color=green][color=darkred]
> > > Types dialog box in Windows Explorer. I'm going to look into it and[/color][/color][/color]
post[color=blue][color=green]
> > his[color=darkred]
> > > full response once I check it out.
> > >
> > > Oh yeah - re the Save/Open dialog box behavior, yes I get it for all[/color][/color]
> file[color=green][color=darkred]
> > > types including Excel and Word. Anyway, I should be posting the[/color][/color]
> resolution[color=green][color=darkred]
> > > shortly, and then we can all get back to our normal jobs! :-)
> > >
> > >
> > > Brian
> > > www.CrystalReportsBook.com
> > >
> > >
> > >
> > >
> > >
> > > "Rob Diamant" <rob@usi.com> wrote in message
> > > news:Owurl%23rGFHA.3088@tk2msftngp13.phx.gbl...
> > > > Guys,
> > > >
> > > > I have been following this thread for a while (it's entertaining, I[/color]
> > can't[color=darkred]
> > > > wait for the finish) and was wondering what code is behind LP's[/color][/color][/color]
Export[color=blue][color=green][color=darkred]
> > > > Button that may be different then Brian's. Maybe you guys should[/color]
> > compare.[color=darkred]
> > > >
> > > > Rob
> > > >
> > > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
> > > > news:%23HXLxMrGFHA.3504@TK2MSFTNGP10.phx.gbl...
> > > > > Man, we are really going around in circles about this one. I still[/color][/color]
> say[color=green][color=darkred]
> > > > > it's
> > > > > a browser issue and not a Crystal problem. For example, if I go[/color][/color][/color]
into[color=blue][color=green]
> > my[color=darkred]
> > > > > browser and tell it to display large fonts, I can't then send[/color][/color][/color]
emails[color=blue][color=green]
> > to[color=darkred]
> > > > > every website I visit complaining that their web designers should[/color][/color]
> use[color=green][color=darkred]
> > > > > smaller fonts. On my browser I get the Open/Save dialog box that[/color][/color][/color]
you[color=blue][color=green][color=darkred]
> > > don't
> > > > > get and I also see an option to turn it off. Thus, it works fine[/color][/color][/color]
on[color=blue]
> my[color=green][color=darkred]
> > > > > browser and it appears to be a browser controlled setting. So how[/color]
> > could[color=darkred]
> > > it
> > > > > be a Crystal problem?
> > > > >
> > > > > That being said, I have no clue about how the Header record[/color][/color][/color]
effects[color=blue][color=green]
> > what[color=darkred]
> > > > > the
> > > > > browser does. Maybe Crystal is using a Header record that makes[/color][/color][/color]
the[color=blue][color=green][color=darkred]
> > > > > Open/Save dialog box optional? Maybe their header record is only
> > > > > compatible
> > > > > with certain browser versions and doesn't work with others? I[/color][/color][/color]
don't[color=blue][color=green][color=darkred]
> > > know.
> > > > > This whole thing is getting very frustrating and I'm determined to
> > > figure
> > > > > out what the heck is going on. Having it work one way in one[/color][/color][/color]
browser[color=blue][color=green]
> > and[color=darkred]
> > > > > another way in another browser and having no idea why is driving[/color][/color][/color]
me[color=blue][color=green][color=darkred]
> > > crazy.
> > > > > Somewhere there has to be a reasonable explanation for this[/color][/color][/color]
problem[color=blue][color=green]
> > you[color=darkred]
> > > > > are
> > > > > having.
> > > > >
> > > > > Brian
> > > > >
> > > > >
> > > > >
> > > > > "LP" <lp@a.com> wrote in message
> > > > > news:O$f8zSqGFHA.3312@TK2MSFTNGP10.phx.gbl...
> > > > >> > For example, I can go into Adobe Properties
> > > > >> > and turn this on and off using one of their options. When that[/color]
> > dialog[color=darkred]
> > > > > box
> > > > >> > opens, there is a checkbox at the bottom about whether you[/color][/color]
> should[color=green]
> > be[color=darkred]
> > > > >> > prompted with this box again or just open the file directly.
> > > > >>
> > > > >> You are tweaking Adobe settings not the browser.
> > > > >>
> > > > >> >Thus, this is a
> > > > >> > browser setting.
> > > > >> No, it's Adobe setting.
> > > > >>
> > > > >> I can't find similar setting in browser or Excel Word either. And[/color]
> > again[color=darkred]
> > > > > lets
> > > > >> assume it's a browser setting, but that would default behavior of[/color][/color][/color]
a[color=blue][color=green][color=darkred]
> > > > > browser.
> > > > >> So by default CR export functionality is unusable. I don't[/color][/color]
> understand[color=green][color=darkred]
> > > how
> > > > > CR
> > > > >> vendor (BusinessObjects as of today) could not see that someone[/color][/color]
> would[color=green][color=darkred]
> > > > >> actually want to save exported file, not just look at it in a[/color][/color][/color]
popup[color=blue][color=green][color=darkred]
> > > > > window.
> > > > >> When I get a chance, I'll look into how to filter HTML rendered[/color][/color][/color]
by[color=blue]
> CR[color=green][color=darkred]
> > > and
> > > > >> modify it to enable save as functionality.
> > > > >>
> > > > >>
> > > > >> "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in message
> > > > >> news:%23mI5GUpGFHA.3312@TK2MSFTNGP10.phx.gbl...
> > > > >> > Ok, that's what I thought. I think that is a browser issue b/c[/color][/color][/color]
I[color=blue][color=green]
> > was[color=darkred]
> > > > > able
> > > > >> to
> > > > >> > toggle this feature on and off. For example, I can go into[/color][/color][/color]
Adobe[color=blue][color=green][color=darkred]
> > > > >> Properties
> > > > >> > and turn this on and off using one of their options. When that[/color]
> > dialog[color=darkred]
> > > > > box
> > > > >> > opens, there is a checkbox at the bottom about whether you[/color][/color]
> should[color=green]
> > be[color=darkred]
> > > > >> > prompted with this box again or just open the file directly.[/color][/color]
> Thus,[color=green][color=darkred]
> > > this
> > > > > is
> > > > >> a
> > > > >> > browser setting. The header doesn't control it b/c on my[/color][/color][/color]
computer[color=blue]
> I[color=green][color=darkred]
> > > was
> > > > >> able
> > > > >> > to get the dialog box to come up or send it directly to a[/color][/color][/color]
browser[color=blue][color=green][color=darkred]
> > > > >> > window
> > > > >> > using and Adobe Properties setting. I would search Google to[/color][/color][/color]
see[color=blue][color=green]
> > how[color=darkred]
> > > to
> > > > >> turn
> > > > >> > this on or off.
> > > > >> >
> > > > >> > Brian
> > > > >> >
> > > > >> >
> > > > >> >
> > > > >> > "LP" <lp@a.com> wrote in message
> > > > >> > news:erPQ26oGFHA.1176@TK2MSFTNGP12.phx.gbl...
> > > > >> > > > Are you saying that you don't get the Open/Save dialog box[/color][/color][/color]
or[color=blue][color=green]
> > you[color=darkred]
> > > > >> > > > do
> > > > >> get
> > > > >> > > it?
> > > > >> > >
> > > > >> > > I do NOT get it. When I click export icon it opens a popup[/color][/color]
> window[color=green][color=darkred]
> > > > >> > > with
> > > > >> > > Excel, or Word embedded in the window, but no toolbars no[/color][/color]
> nothing[color=green][color=darkred]
> > > and
> > > > >> > > certainly NO "Save as" dialog box. If you could come up with[/color][/color][/color]
a[color=blue][color=green]
> > way[color=darkred]
> > > to
> > > > >> > > provide users with ability to "save as" what's embedded[/color][/color][/color]
inside[color=blue]
> a[color=green][color=darkred]
> > > > > popup,
> > > > >> I
> > > > >> > > would greatly appreciate it.
> > > > >> > >
> > > > >> > > Thanks
> > > > >> > >
> > > > >> > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in[/color][/color]
> message[color=green][color=darkred]
> > > > >> > > news:%23vaVMUjGFHA.1096@tk2msftngp13.phx.gbl...
> > > > >> > > > Are you saying that you don't get the Open/Save dialog box[/color][/color][/color]
or[color=blue][color=green]
> > you[color=darkred]
> > > > >> > > > do
> > > > >> get
> > > > >> > > it?
> > > > >> > > > It seems that you don't get it at all. I get it on my[/color][/color]
> computer[color=green][color=darkred]
> > > and
> > > > >> > > > I
> > > > >> > think
> > > > >> > > > this is a browser issue. As I said earlier, I was able to[/color][/color]
> turn[color=green][color=darkred]
> > > > >> > > > enable/disable it using a PDF option. The second issue of[/color][/color][/color]
the[color=blue][color=green][color=darkred]
> > > > > toolbar
> > > > >> > not
> > > > >> > > > having the Save buttons could be a header issue. I'm not
> > > > > knowledgeable
> > > > >> > > about
> > > > >> > > > HTML headers but it does make sense that the header tags[/color][/color][/color]
can[color=blue][color=green][color=darkred]
> > > > >> > > > control
> > > > >> > this.
> > > > >> > > I
> > > > >> > > > will have to research that tomorrow.
> > > > >> > > >
> > > > >> > > > Brian Bischof
> > > > >> > > > www.CrystalReportsBook.com
> > > > >> > > >
> > > > >> > > >
> > > > >> > > >
> > > > >> > > > "LP" <lp@a.com> wrote in message
> > > > >> > > > news:%23GkSYeiGFHA.2620@tk2msftngp13.phx.gbl...
> > > > >> > > > > Brian, Thanks for looking into this for me.
> > > > >> > > > > I think you understand my problem. But just to be clear:
> > > > >> > > > > When I click export button of a webviewer, it does open a[/color]
> > popup[color=darkred]
> > > > >> window
> > > > >> > > and
> > > > >> > > > > loads excel, word, etc. into the window. But there's no[/color]
> > obvious[color=darkred]
> > > > > way
> > > > >> to
> > > > >> > > > save
> > > > >> > > > > it to a local drive as a file (other than copy and paste)[/color]
> > And,[color=darkred]
> > > > > yes,
> > > > >> > you
> > > > >> > > > are
> > > > >> > > > > right PDF is the only format with a toolbar that has[/color][/color][/color]
"save[color=blue][color=green]
> > as"[color=darkred]
> > > > > icon.
> > > > >> > But
> > > > >> > > I
> > > > >> > > > > think it's part of PDF object embedded within a browser.[/color][/color][/color]
I[color=blue][color=green]
> > also[color=darkred]
> > > > >> looked
> > > > >> > > in
> > > > >> > > > > browser settings to make it open "save as" dialog box,[/color][/color][/color]
but[color=blue][color=green][color=darkred]
> > > could
> > > > > not
> > > > >> > > find
> > > > >> > > > > anything.
> > > > >> > > > > But I begin to doubt that it is a browser issue like you
> > > > > suggesting.
> > > > >> I
> > > > >> > > > think
> > > > >> > > > > this behavior is controlled by HTTP header tags. I know[/color][/color]
> that[color=green][color=darkred]
> > > > > there's
> > > > >> a
> > > > >> > > > > header tag content-type (or something like that) where[/color][/color][/color]
you[color=blue][color=green]
> > can[color=darkred]
> > > > >> specify
> > > > >> > > > > ms-excel, ms-word, etc. And there's also "attachment;
> > > filename="
> > > > > tag
> > > > >> > > where
> > > > >> > > > > you can give file name and browser then will prompt you[/color][/color][/color]
to[color=blue][color=green]
> > save[color=darkred]
> > > > >> > > > > or
> > > > >> > open
> > > > >> > > > that
> > > > >> > > > > file. So, I do think it's the way CR not providing the[/color][/color]
> right[color=green][color=darkred]
> > > HTTP
> > > > >> > header
> > > > >> > > > > tags for the popup is a root of the problem. So, I am[/color]
> > thinking[color=darkred]
> > > of
> > > > >> > > > > intercepting CR rendered HTML and modifying it, but I[/color][/color]
> haven't[color=green][color=darkred]
> > > had
> > > > >> any
> > > > >> > > time
> > > > >> > > > > to do anything serious like that, after all I am just[/color]
> > building[color=darkred]
> > > a
> > > > >> demo
> > > > >> > > app.
> > > > >> > > > > Let me know if you find anything else, or if I am on the[/color]
> > right[color=darkred]
> > > > >> track.
> > > > >> > > > >
> > > > >> > > > > Thank you again for your input.
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote in
> > > message
> > > > >> > > > > news:%23rZC84fGFHA.2524@TK2MSFTNGP15.phx.gbl...
> > > > >> > > > > > Hmmm. I'm looking over all your posts. The first post[/color][/color][/color]
you[color=blue][color=green]
> > had[color=darkred]
> > > > > last
> > > > >> > > week
> > > > >> > > > > said
> > > > >> > > > > > that you couldn't get the Save As dialog box to open.
> > > Instead,
> > > > > it
> > > > >> > > always
> > > > >> > > > > > spawned a new window. Now it seems that when you are in[/color][/color]
> the[color=green][color=darkred]
> > > new
> > > > >> > window
> > > > >> > > > it
> > > > >> > > > > > won't allow saving the data. I assume this is a direct[/color]
> > result[color=darkred]
> > > > >> > > > > > of
> > > > >> not
> > > > >> > > > being
> > > > >> > > > > > able to solve the first problem. So here are my[/color][/color][/color]
comments.[color=blue][color=green][color=darkred]
> > > > >> > > > > >
> > > > >> > > > > > First is that if the export button doesn't open the[/color]
> > Save/Open[color=darkred]
> > > > >> dialog
> > > > >> > > > box,
> > > > >> > > > > > then I think it's a browser issue. For example, at the[/color]
> > bottom[color=darkred]
> > > > >> > > > > > of
> > > > >> the
> > > > >> > > > > dialog
> > > > >> > > > > > box is a checkbox telling whether it should prompt you[/color][/color]
> with[color=green][color=darkred]
> > > > >> > > > > > this
> > > > >> or
> > > > >> > > not.
> > > > >> > > > I
> > > > >> > > > > > played around with it for Excel and Word but this had[/color][/color][/color]
no[color=blue][color=green][color=darkred]
> > > > >> > > > > > effect.
> > > > > I
> > > > >> > did
> > > > >> > > > > find
> > > > >> > > > > > out that I can change this with Adobe inside the Adobe
> > > Internet
> > > > >> > > > > preferences.
> > > > >> > > > > > After fixing that I got the Open/Save box for PDFs[/color][/color][/color]
again.[color=blue]
> I[color=green][color=darkred]
> > > > > looked
> > > > >> > in
> > > > >> > > > > > preferences for Excel/Word and couldn't find such an[/color]
> > option.[color=darkred]
> > > > > Thus,
> > > > >> > the
> > > > >> > > > PDF
> > > > >> > > > > > option makes me think that the browser is controlling[/color][/color]
> this[color=green][color=darkred]
> > > and
> > > > > not
> > > > >> > CR
> > > > >> > > > XI.
> > > > >> > > > > > Overall, I have the Open/Save dialog popping up for all[/color]
> > file[color=darkred]
> > > > > types
> > > > >> > in
> > > > >> > > my
> > > > >> > > > > > brower and you should be able to get them too.
> > > > >> > > > > >
> > > > >> > > > > > Re the Excel and Word browsers not letting you save[/color][/color][/color]
data,[color=blue][color=green][color=darkred]
> > > this
> > > > > is
> > > > >> > > > > happening
> > > > >> > > > > > with my computer as well. However, again I have to[/color][/color]
> question[color=green][color=darkred]
> > > if
> > > > >> this
> > > > >> > is
> > > > >> > > a
> > > > >> > > > > > browser issue or a CR XI issue since XI is just sending[/color][/color]
> the[color=green][color=darkred]
> > > XLS
> > > > >> file
> > > > >> > > to
> > > > >> > > > > the
> > > > >> > > > > > browser. I'll continue to play with it b/c I don't know[/color][/color]
> the[color=green][color=darkred]
> > > > > answer
> > > > >> > to
> > > > >> > > > this
> > > > >> > > > > > one yet. But I think your best bet is to look at the[/color][/color]
> first[color=green][color=darkred]
> > > > >> > > > > > issue
> > > > >> and
> > > > >> > > get
> > > > >> > > > > the
> > > > >> > > > > > Open/Save dialog box to pop up by tweaking the IE[/color][/color]
> settings.[color=green][color=darkred]
> > > > >> > > > > >
> > > > >> > > > > > HTH,
> > > > >> > > > > >
> > > > >> > > > > > Brian Bischof
> > > > >> > > > > > www.CrystalReportsBook.com
> > > > >> > > > > >
> > > > >> > > > > >
> > > > >> > > > > >
> > > > >> > > > > > "Brian Bischof" <Brian@NoSpamBischofSystems.com> wrote[/color][/color][/color]
in[color=blue][color=green][color=darkred]
> > > > > message
> > > > >> > > > > > news:%236jPVYfGFHA.3472@TK2MSFTNGP09.phx.gbl...
> > > > >> > > > > > > Those are good points. Let me look into the export[/color]
> > problem[color=darkred]
> > > of
> > > > >> not
> > > > >> > > > saving
> > > > >> > > > > > to
> > > > >> > > > > > > disk and see if I can get you an answer.
> > > > >> > > > > > >
> > > > >> > > > > > > Brian
> > > > >> > > > > > >
> > > > >> > > > > > >
> > > > >> > > > > > > "LP" <lp@a.com> wrote in message
> > > > >> > > > > > > news:%23VXeKbeGFHA.4088@TK2MSFTNGP09.phx.gbl...
> > > > >> > > > > > > > >The best practice is to use the
> > > > >> > > > > > > > > ReportDocument object model (unless working with
> > > > >> WebServices).
> > > > >> > > Try
> > > > >> > > > > > that
> > > > >> > > > > > > > and
> > > > >> > > > > > > > > post the results here.
> > > > >> > > > > > > >
> > > > >> > > > > > > > ReportDocument did work for me for postback[/color][/color][/color]
problems.[color=blue][color=green]
> > But[color=darkred]
> > > I
> > > > >> also
> > > > >> > > > have
> > > > >> > > > > a
> > > > >> > > > > > > > button that exports report to excel and then sends[/color][/color]
> this[color=green][color=darkred]
> > > > >> > > > > > > > file
> > > > >> to
> > > > >> > a
> > > > >> > > > > client
> > > > >> > > > > > > > through HTTP. I could not get that to work with one
> > > > >> > parameterized
> > > > >> > > > > > report.
> > > > >> > > > > > > > Parameters don't seem to get cached with[/color]
> > reportdocument.[color=darkred]
> > > I
> > > > >> tried
> > > > >> > > my
> > > > >> > > > > > > > different things, like caching actuall ParamFields
> > > object,
> > > > >> etc.
> > > > >> > > but
> > > > >> > > > > > > nothing
> > > > >> > > > > > > > seems to work.
> > > > >> > > > > > > > I need this button because export in Crystal[/color][/color]
> webviewer[color=green][color=darkred]
> > > > >> > > > > > > > opens
> > > > > a
> > > > >> > > popup
> > > > >> > > > > > > window
> > > > >> > > > > > > > with no toolbars, so users can't save it to a file.[/color][/color]
> If[color=green]
> > I[color=darkred]
> > > > > could
> > > > >> > > find
> > > > >> > > > > > > > workaround that, there would not be a need for this
> > > custom
> > > > >> > export
> > > > >> > > > > > button.
> > > > >> > > > > > > My
> > > > >> > > > > > > > biggest problem with Crystal right now is very[/color][/color][/color]
simple[color=blue][color=green]
> > but[color=darkred]
> > > > > yet
> > > > >> > > > > important
> > > > >> > > > > > > > things take so much time effort to do that it[/color][/color][/color]
becomes[color=blue][color=green][color=darkred]
> > > > >> > questionanle
> > > > >> > > > if
> > > > >> > > > > > it's
> > > > >> > > > > > > > all worth it. And default behavior of Crystal is[/color][/color][/color]
just[color=blue][color=green][color=darkred]
> > > > > bizarre
> > > > >> > like
> > > > >> > > > > > opening
> > > > >> > > > > > > a
> > > > >> > > > > > > > popup with no toolbars when exporting to another[/color]
> > format,[color=darkred]
> > > so
> > > > >> file
> > > > >> > > > can't
> > > > >> > > > > > be
> > > > >> > > > > > > > "save as"
> > > > >> > > > > > > >
> > > > >> > > > > > > >
> > > > >> > > > > > > >
> > > > >> > > > > > > > "Brian Bischof" <Brian@NoSpamBischofSystems.com>[/color][/color]
> wrote[color=green]
> > in[color=darkred]
> > > > >> > message
> > > > >> > > > > > > > news:%230b8BKdGFHA.2976@TK2MSFTNGP09.phx.gbl...
> > > > >> > > > > > > > > I agree about the confusing API. Have you seen my
> > > > >> > > > > > > > > existing
> > > > >> > book,
> > > > >> > > > > > > "Crystal
> > > > >> > > > > > > > > Reports .NET Programming"? It teaches you how to[/color][/color]
> use[color=green][color=darkred]
> > > the
> > > > >> .NET
> > > > >> > > > object
> > > > >> > > > > > > model
> > > > >> > > > > > > > > and has many tips and tricks for getting it to[/color][/color]
> work.[color=green][color=darkred]
> > > > > Anyway,
> > > > >> > it
> > > > >> > > > only
> > > > >> > > > > > > > touches
> > > > >> > > > > > > > > on the RAS and RDC programming a bit (I don't[/color][/color][/color]
know[color=blue]
> if[color=green][color=darkred]
> > > > > using
> > > > >> > that
> > > > >> > > > or
> > > > >> > > > > > > not).
> > > > >> > > > > > > > > I'm going to do another book which is hardcore[/color][/color][/color]
RAS[color=blue][color=green][color=darkred]
> > > > >> programming
> > > > >> > > > > because
> > > > >> > > > > > > RAS
> > > > >> > > > > > > > > is extremely complicated to learn and program[/color][/color]
> with..[color=green][color=darkred]
> > > But
> > > > >> that
> > > > >> > > > won't
> > > > >> > > > > be
> > > > >> > > > > > > > till
> > > > >> > > > > > > > > after I finish the CR XI book I'm working on now.
> > > > >> > > > > > > > >
> > > > >> > > > > > > > > Anyway, to answer your question, the mistake most
> > > people
> > > > >> make
> > > > >> > is
> > > > >> > > > > that
> > > > >> > > > > > > they
> > > > >> > > > > > > > > mix up the viewer object model with the report[/color][/color]
> object[color=green][color=darkred]
> > > > > model.
> > > > >> > > They
> > > > >> > > > > set
> > > > >> > > > > > > some
> > > > >> > > > > > > > > properties using one object and set other[/color][/color]
> properties[color=green][color=darkred]
> > > > >> > > > > > > > > using
> > > > >> the
> > > > >> > > > other
> > > > >> > > > > > > > object
> > > > >> > > > > > > > > model. Then they get consfused when some of the
> > > > >> > > > > > > > > properties
> > > > >> get
> > > > >> > > > > > dropped.
> > > > >> > > > > > > > You
> > > > >> > > > > > > > > can only use ONE object model at a time. The best
> > > > >> > > > > > > > > practice
> > > > >> is
> > > > >> > to
> > > > >> > > > use
> > > > >> > > > > > the
> > > > >> > > > > > > > > ReportDocument object model (unless working with
> > > > >> WebServices).
> > > > >> > > Try
> > > > >> > > > > > that
> > > > >> > > > > > > > and
> > > > >> > > > > > > > > post the results here.
> > > > >> > > > > > > > >
> > > > >> > > > > > > > > Brian Bischof
> > > > >> > > > > > > > > www.CrystalReportsBook.com
> > > > >> > > > > > > > >
> > > > >> > > > > > > > >
> > > > >> > > > > > > > >
> > > > >> > > > > > > > > "LP" <lp@a.com> wrote in message
> > > > >> > > > > > > > > news:eS$1FzVGFHA.3612@TK2MSFTNGP09.phx.gbl...
> > > > >> > > > > > > > > > Ok, I did change it to ReportDocument , and[/color][/color][/color]
that[color=blue][color=green][color=darkred]
> > > worked
> > > > >> for
> > > > >> > me
> > > > >> > > > > even
> > > > >> > > > > > > > > without
> > > > >> > > > > > > > > > saving it to Session Variable. But now I am[/color][/color]
> having[color=green][color=darkred]
> > > > > another
> > > > >> > > > problem
> > > > >> > > > > > > with
> > > > >> > > > > > > > > > exporting. I have another button that export[/color][/color]
> report[color=green][color=darkred]
> > > to
> > > > >> excel
> > > > >> > > and
> > > > >> > > > > > sends
> > > > >> > > > > > > a
> > > > >> > > > > > > > > > file to a client, so now one parameterized[/color][/color][/color]
report[color=blue][color=green][color=darkred]
> > > > > doesn't
> > > > >> > > work.
> > > > >> > > > I
> > > > >> > > > > > > tried
> > > > >> > > > > > > > > > saving reportDoc and it ParameterFields to[/color][/color]
> session[color=green][color=darkred]
> > > and
> > > > >> > > > retrieving,
> > > > >> > > > > > but
> > > > >> > > > > > > > > > nothing works.
> > > > >> > > > > > > > > > I think CR is a very good product, very sharp[/color]
> > looking[color=darkred]
> > > > >> > reports
> > > > >> > > > > (when
> > > > >> > > > > > > you
> > > > >> > > > > > > > > get
> > > > >> > > > > > > > > > them to work), very slick designer especially[/color]
> > version[color=darkred]
> > > > > XI.
> > > > >> > But
> > > > >> > > > > their
> > > > >> > > > > > > API
> > > > >> > > > > > > > > and
> > > > >> > > > > > > > > > object hierarchy is terribly confusing and
> > > inconsistent
> > > > >> with
> > > > >> > > > what
> > > > >> > > > > > one
> > > > >> > > > > > > > > would
> > > > >> > > > > > > > > > expect from .NET friendly product, I haven't[/color][/color][/color]
seen[color=blue][color=green]
> > any[color=darkred]
> > > > > good
> > > > >> > > > > > > documentation
> > > > >> > > > > > > > > on
> > > > >> > > > > > > > > > their APIs.
> > > > >> > > > > > > > > >
> > > > >> > > > > > > > > >
> > > > >> > > > > > > > > > "LP" <lp@a.com> wrote in message
> > > > >> > > > > > > > > > news:ezCf58UGFHA.1456@TK2MSFTNGP09.phx.gbl...
> > > > >> > > > > > > > > > > Brian, I am not using ReportDocument object,[/color][/color][/color]
I[color=blue]
> am[color=green][color=darkred]
> > > > >> setting
> > > > >> > > > > viewers
> > > > >> > > > > > > > > > > ReportSource to a report file directly:
> > > > >> > > > > > > > > > >
> > > > >> > > > > > > > > > > crViewer.ReportSource =[/color][/color]
> Server.MapPath("Reports/"[color=green]
> > &[color=darkred]
> > > > >> > > > reportName)
> > > > >> > > > > > > > > > >
> > > > >> > > > > > > > > > > What should I do in this case?
> > > > >> > > > > > > > > > >
> > > > >> > > > > > > > > > >
> > > > >> > > > > > > > > > >
> > > > >> > > > > > > > > > > Thanks
> > > > >> > > > > > > > > > >
> > > > >> > > > > > > > > > >
> > > > >> > > > > > > > > > > "Brian Bischof"[/color][/color]
> <Brian@NoSpamBischofSystems.com>[color=green][color=darkred]
> > > > >> > > > > > > > > > > wrote
> > > > >> in
> > > > >> > > > > message
> > > > >> > > > > > > > > > > news:eQZxtDUGFHA.548@TK2MSFTNGP14.phx.gbl...
> > > > >> > > > > > > > > > > > You have to cache the report object. Save[/color][/color][/color]
the[color=blue][color=green][color=darkred]
> > > > >> > > > > > > > > > > > report
> > > > >> > > object
> > > > >> > > > to
> > > > >> > > > > > the
> > > > >> > > > > > >
> > > > >> > > > > > > > > > > Session()
> > > > >> > > > > > > > > > > > collection and then restore it upon page[/color]
> > refresh[color=darkred]
> > > > >> > > > > > > > > > > > (be
> > > > >> > sure
> > > > >> > > to
> > > > >> > > > > > > > explicity
> > > > >> > > > > > > > > > > cast
> > > > >> > > > > > > > > > > > it as a ReportDocument). ASP.NET reports do[/color][/color]
> all[color=green][color=darkred]
> > > > > kinds
> > > > >> of
> > > > >> > > > funny
> > > > >> > > > > > > > things
> > > > >> > > > > > > > > if
> > > > >> > > > > > > > > > > you
> > > > >> > > > > > > > > > > > don't save them between page refreshes.
> > > > >> > > > > > > > > > > >
> > > > >> > > > > > > > > > > > HTH,
> > > > >> > > > > > > > > > > >
> > > > >> > > > > > > > > > > > Brian Bischof
> > > > >> > > > > > > > > > > > www.CrystalReportsBook.com
> > > > >> > > > > > > > > > > >
> > > > >> > > > > > > > > > > >
> > > > >> > > > > > > > > > > >
> > > > >> > > > > > > > > > > > "LP" <lp@a.com> wrote in message
> > > > >> > > > > > > > > > > >[/color][/color][/color]
news:OgS0FtTGFHA.2876@TK2MSFTNGP12.phx.gbl...[color=blue][color=green][color=darkred]
> > > > >> > > > > > > > > > > > > I am using (trying to) CR version XI,[/color]
> > cascading[color=darkred]
> > > > >> > > parameters
> > > > >> > > > > > > feature
> > > > >> > > > > > > > > > works
> > > > >> > > > > > > > > > > > it
> > > > >> > > > > > > > > > > > > asks user to enter params. But if page is
> > > > >> resubmitted.
> > > > >> > > It
> > > > >> > > > > > > prompts
> > > > >> > > > > > > > > for
> > > > >> > > > > > > > > > > > params
> > > > >> > > > > > > > > > > > > again. I did set
> > > > >> ReuseParameterValuesOnRefresh="True"
> > > > >> > in
> > > > >> > > a
> > > > >> > > > > > > viewer,
> > > > >> > > > > > > > > but
> > > > >> > > > > > > > > > > it
> > > > >> > > > > > > > > > > > > still doesn't work. Did anyone run into[/color][/color]
> this[color=green][color=darkred]
> > > > >> problem.
> > > > >> > > > What's
> > > > >> > > > > > the
> > > > >> > > > > > > > > > > solution?
> > > > >> > > > > > > > > > > > > Please help.
> > > > >> > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > Thank you
> > > > >> > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > >
> > > > >> > > > > > > > > > > >
> > > > >> > > > > > > > > > > >
> > > > >> > > > > > > > > > >
> > > > >> > > > > > > > > > >
> > > > >> > > > > > > > > >
> > > > >> > > > > > > > > >
> > > > >> > > > > > > > >
> > > > >> > > > > > > > >
> > > > >> > > > > > > >
> > > > >> > > > > > > >
> > > > >> > > > > > >
> > > > >> > > > > > >
> > > > >> > > > > >
> > > > >> > > > > >
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > >
> > > > >> > > >
> > > > >> > >
> > > > >> > >
> > > > >> >
> > > > >> >
> > > > >>
> > > > >>
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


Closed Thread