all groups > sql server reporting services > september 2005 >
You're in the

sql server reporting services

group:

ReportDesigner Preview Mode


ReportDesigner Preview Mode Tom Bean
9/1/2005 1:31:38 PM
sql server reporting services:
Is there any way for a Data Processing Extension to determine if it is being
called by ReportDesigner in Preview mode (like "#if DEBUG" or 'DesignMode'
in a .NET Windows Application)?

In particular, I want to determine if the call comes from the Preview tab of
ReportDesigner.

Thanks,
Tom

Re: ReportDesigner Preview Mode Smith
9/2/2005 12:00:00 AM
Would you mind telling me why you wanted that?

[quoted text, click to view]

Re: ReportDesigner Preview Mode Tom Bean
9/2/2005 8:28:05 AM
The parameters passed on the command line are not used the report is
previewed in ReportDesigner, so I would like to add some code to my Data
Processing Extension to initialize the parameters from the command line when
in preview mode.

Tom

[quoted text, click to view]

Re: ReportDesigner Preview Mode Smith
9/5/2005 5:54:32 PM
Could you elaborate what you are doing?
a. what's your command line look like?
b. did you create your custom data processing extension?

[quoted text, click to view]

Re: ReportDesigner Preview Mode Tom Bean
9/6/2005 9:13:36 AM
a. My command line contains the parameters used on a URL, e.g.
?p1=123?p2=234.

b. Yes, I have created my custom data processing extension and it works
fine when accessed via URL and when you input the parameters at the prompts
in the preview mode of ReportDesigner.

If I can detect when the report is being run from the preview tab, I can
supply the parameters so they don't have to be input at the prompt.

[quoted text, click to view]

Re: ReportDesigner Preview Mode v-rxwang NO[at]SPAM online.microsoft.com
9/7/2005 9:27:17 AM
Hi Tom,

Unfortunately, there is nothing provided to DPE's to know where they are
being called from.

Sincerely,

William Wang
Microsoft Online Partner Support

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

This posting is provided "AS IS" with no warranties, and confers no rights.
AddThis Social Bookmark Button