dbaspot
Tags Register FAQ Calendar Search Today's Posts Mark Forums Read

Export To Excel throws Error WrapperReportRenderingException - ms-sqlserver

This is a discussion on Export To Excel throws Error WrapperReportRenderingException - ms-sqlserver ; Hello, I would like to get the report definition so that I can go for further assistance. Sincerely, Wei Lu Microsoft Online Community Support ================================================== When responding to posts, please "Reply to Group" via your newsreader so that others may ...


Home > Database Forum > Microsoft SQL Server > ms-sqlserver > Export To Excel throws Error WrapperReportRenderingException

Reply

 

LinkBack Thread Tools Display Modes
  #11  
Old 12-11-2007, 02:18 AM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Export To Excel throws Error WrapperReportRenderingException

Hello,

I would like to get the report definition so that I can go for further
assistance.

Sincerely,

Wei Lu
Microsoft Online Community 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.

Reply With Quote
  #12  
Old 12-11-2007, 04:51 AM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Export To Excel throws Error WrapperReportRenderingException

Hi Shai,

Thanks for the input and it works. I can export the dataset to Excel without
any problem.
Please have a look at my reply to Wei eariler with more information.

Thank you again for the help...


wrote in message
news:c31b3356-cc38-4f95-905f-c7c2ede4e7ff@t1g2000pra.googlegroups.com...
> Chris,
>
> In the dialog box that opens , select "Allfiles", then type in the
> file name with the extension , viz. Test.xls and that will create the
> file for you.
>
>
> Cheers
>
> Shai
>
> On Dec 10, 5:23 pm, we...@online.microsoft.com (Wei Lu [MSFT]) wrote:
>> Hello,
>>
>> Have you tried to export the result to csv and open it in Excel?
>>
>> Sincerely,
>>
>> Wei Lu
>> Microsoft Online Community 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.

>



Reply With Quote
  #13  
Old 12-11-2007, 10:56 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Export To Excel throws Error WrapperReportRenderingException

Hi

So its not Excel and its not SQL . Oook, now lets consider the
report , I suspect that the grouping on the big int field is causing
excel to crash. Depends on how many unique big ints you have in your
data set , but the next thing I would do is to try and isolate if any
one of the big int values is causing the crash. The easiest way to do
this would be to limit the big int in your data set to one of each
unique value and exporting the report to excel. But if you have a very
high number of big ints then it can be a long process. Whatever the
data , excel should not crash . Having said that , if the grouping is
too complicated, I would also suggest trying sub reports to simplify
the process.

Cheers
Shai
Reply With Quote
  #14  
Old 12-14-2007, 05:35 AM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Export To Excel throws Error WrapperReportRenderingException

Hi Wei,

This is just a test to see whether I am able to reply to this post.
I have tried to reply your post for number of time without any success.
I was thinking may be the attached files caused it so this reply is just a
test.


"Wei Lu [MSFT]" wrote in message
news:9oAE027OIHA.5204@TK2MSFTNGHUB02.phx.gbl...
> Hello,
>
> I would like to get the report definition so that I can go for further
> assistance.
>
> Sincerely,
>
> Wei Lu
> Microsoft Online Community 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.
>



Reply With Quote
  #15  
Old 12-14-2007, 07:20 AM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Export To Excel throws Error WrapperReportRenderingException

Hi Wei,

Sorry for the delay, I have tried to reply a number of times but it seems to
unable to
post successfully onto the news group with an attachment.

So I have to paste the RDL file with the messgae:
Sorry, this is the cut down verison already.

Again. Thanks you for your help.


xmlns="http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition"
xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">


TransportPortal02
ataSourceID>ab3ce8e1-4bd1-4a8c-b729-8c2a9323eb58ataSourceID>


1cm
21cm


Integer
true
ExentraUserID|false|UI


Integer
true
DUMMY_ExentraReportID|false|UI


String
true


en-GB


true
DUMMY_Culture|false|UI


Integer


1


true
Report Template|FALSE|UI


RptWizGetTemplateList_ForUserID
TEMPLATEID
TEMPLATENAME




Integer


-999


true
Depot|false|UI


GetDepotsForUser_WithALLOption
depotid
DepotName




String


*


true
Driver Type|false|UI



*



A



C



E






String


Y


true
Driver Status|false|UI



*



Y



N






String


-999


true
Drivers|true|UI


GetDriversForDepot
ENUMBER
DRIVER_NAME




String


BETWEEN_DATES


true
Report Period|false|UI|PERIOD_ONLY_EVENTS



BETWEEN_DATES



PERIOD_RANGE






DateTime
true
Start Date|false|UI


DateTime
true
End Date|false|UI


String


PREVIOUS_WEEK


true
Report Frequency|false|UI



PREVIOUS_WEEK



PREVIOUS_FORTNIGHT



PREVIOUS_4WEEKS



PREVIOUS_MONTH



PREVIOUS_QUARTER






Integer


0


true
Report Frequency Offset|false|UI


GetSequenceOfNumbers
VALUE
LABEL




String


TRUE


true
Display Rest Days|false|UI



TRUE



FALSE






String


TRUE


true
Display Drivers With No Msgs|false|UI



TRUE



FALSE






String


TRUE


true
Display Exceptions|false|UI



TRUE



FALSE






String


TRUE


true
Display Working Time Infringements|false|UI



TRUE



FALSE






String
true
DUMMY_DriversList|true|UI


String
true
DUMMY_GlobalRSKeyID|false|UI


Integer
true
DUMMY_SubscriptionID|false|UI


rawGrid>truerawGrid>
8.5in
0.25cm
true

1cm




=Fields!OPERATOR_NAME.Value
Ascending


=Fields!DEPOT_NAME.Value
Ascending


=Fields!DRIVER_NAME.Value
Ascending


=Fields!CHART_YEAR.Value
Ascending


=Fields!WEEK_NUMBER.Value
Ascending


=Fields!WORKINGDATE.Value
Ascending











efaultName>textbox80efaultName>
55

true


true







efaultName>textbox76efaultName>
54

true


true







53

true


true
=Code.GetReportHeaderWithJourneyType(First(Fields! REPORTHEADER.Value,
"RptWizGetReportHeaderText"), First(Fields!JOURNEYTYPE.Value))





2


efaultName>textbox16efaultName>
52

true
WEEKLY TOTALS






51

true
=Code.GetWeeklyTotalsRowColumnValue(First(Fields!C OLUMN1.Value,
"RptWizGetReportColumnSQLColumnNames").ToString(),
SUM(IIF(Fields!CHART_COUNT.Value = -999, 0, Fields!COLUMN1.Value)))







50

true
=Code.GetWeeklyTotalsRowColumnValue(First(Fields!C OLUMN2.Value,
"RptWizGetReportColumnSQLColumnNames").ToString(),
SUM(IIF(Fields!CHART_COUNT.Value = -999, 0, Fields!COLUMN2.Value)))







efaultName>textbox19efaultName>
49

true
=Code.GetWeeklyTotalsRowColumnValue(First(Fields!C OLUMN3.Value,
"RptWizGetReportColumnSQLColumnNames").ToString(),
SUM(IIF(Fields!CHART_COUNT.Value = -999, 0, Fields!COLUMN3.Value)))







48

true
=Code.GetWeeklyTotalsRowColumnValue(First(Fields!C OLUMN4.Value,
"RptWizGetReportColumnSQLColumnNames").ToString(),
SUM(IIF(Fields!CHART_COUNT.Value = -999, 0, Fields!COLUMN4.Value)))







47

true
=Code.GetWeeklyTotalsRowColumnValue(First(Fields!C OLUMN5.Value,
"RptWizGetReportColumnSQLColumnNames").ToString(),
SUM(IIF(Fields!CHART_COUNT.Value = -999, 0, Fields!COLUMN5.Value)))







46

true
=Code.GetWeeklyTotalsRowColumnValue(First(Fields!C OLUMN6.Value,
"RptWizGetReportColumnSQLColumnNames").ToString(),
SUM(IIF(Fields!CHART_COUNT.Value = -999, 0, Fields!COLUMN6.Value)))







efaultName>textbox9efaultName>
45

true
=Code.GetWeeklyTotalsRowColumnValue(First(Fields!C OLUMN7.Value,
"RptWizGetReportColumnSQLColumnNames").ToString(),
SUM(IIF(Fields!CHART_COUNT.Value = -999, 0, Fields!COLUMN7.Value)))







efaultName>textbox12efaultName>
44

true
=Code.GetWeeklyTotalsRowColumnValue(First(Fields!C OLUMN8.Value,
"RptWizGetReportColumnSQLColumnNames").ToString(),
SUM(IIF(Fields!CHART_COUNT.Value = -999, 0, Fields!COLUMN8.Value)))







efaultName>textbox15efaultName>
43

true
=Code.GetWeeklyTotalsRowColumnValue(First(Fields!C OLUMN9.Value,
"RptWizGetReportColumnSQLColumnNames").ToString(),
SUM(IIF(Fields!CHART_COUNT.Value = -999, 0, Fields!COLUMN9.Value)))







efaultName>textbox17efaultName>
42

true
=Code.GetWeeklyTotalsRowColumnValue(First(Fields!C OLUMN10.Value,
"RptWizGetReportColumnSQLColumnNames").ToString(),
SUM(IIF(Fields!CHART_COUNT.Value = -999, 0, Fields!COLUMN10.Value)))







efaultName>textbox18efaultName>
41

true
=Code.GetWeeklyTotalsRowColumnValue(First(Fields!C OLUMN11.Value,
"RptWizGetReportColumnSQLColumnNames").ToString(),
SUM(IIF(Fields!CHART_COUNT.Value = -999, 0, Fields!COLUMN11.Value)))







40

true
=Code.GetWeeklyTotalsRowColumnValue(First(Fields!C OLUMN12.Value,
"RptWizGetReportColumnSQLColumnNames").ToString(),
SUM(IIF(Fields!CHART_COUNT.Value = -999, 0, Fields!COLUMN12.Value)))







efaultName>textbox88efaultName>
39

true


true







efaultName>textbox92efaultName>
38

true


true





0.5cm


true



Equal

=-1

=Fields!MESSAGETYPEID.Value











efaultName>textbox79efaultName>
37

true


true







efaultName>textbox75efaultName>
36

true


true







efaultName>textbox83efaultName>
35

true


true







efaultName>textbox49efaultName>
34

true







efaultName>textbox50efaultName>
33

true
Total






efaultName>textbox20efaultName>
32

true
=Code.GetWorkingPeriodGroupRowColumnTotal(First(Fi elds!COLUMN1.Value,
"RptWizGetReportColumnSQLColumnNames").ToString(),
SUM(Fields!COLUMN1.Value))







efaultName>textbox21efaultName>
31

true
=Code.GetWorkingPeriodGroupRowColumnTotal(First(Fi elds!COLUMN2.Value,
"RptWizGetReportColumnSQLColumnNames").ToString(),
SUM(Fields!COLUMN2.Value))







efaultName>textbox22efaultName>
30

true
=Code.GetWorkingPeriodGroupRowColumnTotal(First(Fi elds!COLUMN3.Value,
"RptWizGetReportColumnSQLColumnNames").ToString(),
SUM(Fields!COLUMN3.Value))







efaultName>textbox23efaultName>
29

true
=Code.GetWorkingPeriodGroupRowColumnTotal(First(Fi elds!COLUMN4.Value,
"RptWizGetReportColumnSQLColumnNames").ToString(),
SUM(Fields!COLUMN4.Value))







efaultName>textbox25efaultName>
28

true
=Code.GetWorkingPeriodGroupRowColumnTotal(First(Fi elds!COLUMN5.Value,
"RptWizGetReportColumnSQLColumnNames").ToString(),
SUM(Fields!COLUMN5.Value))







efaultName>textbox27efaultName>
27

true
=Code.GetWorkingPeriodGroupRowColumnTotal(First(Fi elds!COLUMN6.Value,
"RptWizGetReportColumnSQLColumnNames").ToString(),
SUM(Fields!COLUMN6.Value))







efaultName>textbox28efaultName>
26

true
=Code.GetWorkingPeriodGroupRowColumnTotal(First(Fi elds!COLUMN7.Value,
"RptWizGetReportColumnSQLColumnNames").ToString(),
SUM(Fields!COLUMN7.Value))







efaultName>textbox5efaultName>
25

true
=Code.GetWorkingPeriodGroupRowColumnTotal(First(Fi elds!COLUMN8.Value,
"RptWizGetReportColumnSQLColumnNames").ToString(),
SUM(Fields!COLUMN8.Value))







efaultName>textbox7efaultName>
24

true
=Code.GetWorkingPeriodGroupRowColumnTotal(First(Fi elds!COLUMN9.Value,
"RptWizGetReportColumnSQLColumnNames").ToString(),
SUM(Fields!COLUMN9.Value))







23

true
=Code.GetWorkingPeriodGroupRowColumnTotal(First(Fi elds!COLUMN10.Value,
"RptWizGetReportColumnSQLColumnNames").ToString(),
SUM(Fields!COLUMN10.Value))







efaultName>textbox29efaultName>
22

true
=Code.GetWorkingPeriodGroupRowColumnTotal(First(Fi elds!COLUMN11.Value,
"RptWizGetReportColumnSQLColumnNames").ToString(),
SUM(Fields!COLUMN11.Value))







efaultName>textbox8efaultName>
21

true
=Code.GetWorkingPeriodGroupRowColumnTotal(First(Fi elds!COLUMN12.Value,
"RptWizGetReportColumnSQLColumnNames").ToString(),
SUM(Fields!COLUMN12.Value))







efaultName>textbox87efaultName>
20

true


true







efaultName>textbox90efaultName>
19

true


true





0.5cm

=Code.GetHiddenStatusForWorkingPeriod_GroupFooter( CountRows("WorkingPeriod_Group"))



true



=Fields!WORKINGPERIODID.Value











efaultName>textbox30efaultName>
18

true







efaultName>textbox26efaultName>
17

true







efaultName>textbox24efaultName>
16

true







list1_Details_Group
efaultName>DRIVING_DATEefaultName>
15

true
=Fields!WORKINGDATE.Value






efaultName>DRIVERNAMEefaultName>
14

true
=Code.GetTextForVehicleReg(Fields!REG.Value)






13

=Code.GetHiddenStatusForDetailColumns(First(Fields !COLUMN1.Value,
"RptWizGetReportColumnSQLColumnNames").ToString(),
Fields!CNUM.Value, Fields!CHART_COUNT.Value )



true
=Code.GetFormattedDetailRowValue(
First(Fields!COLUMN1.Value, "RptWizGetReportColumnSQLColumnNames"),
Fields!COLUMN1.Value, Fields!CNUM.Value, Fields!START_LOCATION.Value,
Fields!FINISH_LOCATION.Value )







12

=Code.GetHiddenStatusForDetailColumns(First(Fields !COLUMN2.Value,
"RptWizGetReportColumnSQLColumnNames").ToString(),
Fields!CNUM.Value, Fields!CHART_COUNT.Value )



true
=Code.GetFormattedDetailRowValue(
First(Fields!COLUMN2.Value, "RptWizGetReportColumnSQLColumnNames"),
Fields!COLUMN2.Value, Fields!CNUM.Value, Fields!START_LOCATION.Value,
Fields!FINISH_LOCATION.Value)







11

=Code.GetHiddenStatusForDetailColumns(First(Fields !COLUMN3.Value,
"RptWizGetReportColumnSQLColumnNames").ToString(),
Fields!CNUM.Value, Fields!CHART_COUNT.Value )



true
=Code.GetFormattedDetailRowValue(
First(Fields!COLUMN3.Value, "RptWizGetReportColumnSQLColumnNames"),
Fields!COLUMN3.Value, Fields!CNUM.Value, Fields!START_LOCATION.Value,
Fields!FINISH_LOCATION.Value)







10

=Code.GetHiddenStatusForDetailColumns(First(Fields !COLUMN4.Value,
"RptWizGetReportColumnSQLColumnNames").ToString(),
Fields!CNUM.Value, Fields!CHART_COUNT.Value )



true
=Code.GetFormattedDetailRowValue(
First(Fields!COLUMN4.Value, "RptWizGetReportColumnSQLColumnNames"),
Fields!COLUMN4.Value, Fields!CNUM.Value, Fields!START_LOCATION.Value,
Fields!FINISH_LOCATION.Value)







9

=Code.GetHiddenStatusForDetailColumns(First(Fields !COLUMN5.Value,
"RptWizGetReportColumnSQLColumnNames").ToString(),
Fields!CNUM.Value, Fields!CHART_COUNT.Value )



true
=Code.GetFormattedDetailRowValue(
First(Fields!COLUMN5.Value, "RptWizGetReportColumnSQLColumnNames"),
Fields!COLUMN5.Value, Fields!CNUM.Value, Fields!START_LOCATION.Value,
Fields!FINISH_LOCATION.Value)







8

=Code.GetHiddenStatusForDetailColumns(First(Fields !COLUMN6.Value,
"RptWizGetReportColumnSQLColumnNames").ToString(),
Fields!CNUM.Value, Fields!CHART_COUNT.Value )



true
=Code.GetFormattedDetailRowValue(
First(Fields!COLUMN6.Value, "RptWizGetReportColumnSQLColumnNames"),
Fields!COLUMN6.Value, Fields!CNUM.Value, Fields!START_LOCATION.Value,
Fields!FINISH_LOCATION.Value)







7

=Code.GetHiddenStatusForDetailColumns(First(Fields !COLUMN7.Value,
"RptWizGetReportColumnSQLColumnNames").ToString(),
Fields!CNUM.Value, Fields!CHART_COUNT.Value )



true
=Code.GetFormattedDetailRowValue(
First(Fields!COLUMN7.Value, "RptWizGetReportColumnSQLColumnNames"),
Fields!COLUMN7.Value, Fields!CNUM.Value, Fields!START_LOCATION.Value,
Fields!FINISH_LOCATION.Value)







6

=Code.GetHiddenStatusForDetailColumns(First(Fields !COLUMN8.Value,
"RptWizGetReportColumnSQLColumnNames").ToString(),
Fields!CNUM.Value, Fields!CHART_COUNT.Value )



true
=Code.GetFormattedDetailRowValue(
First(Fields!COLUMN8.Value, "RptWizGetReportColumnSQLColumnNames"),
Fields!COLUMN8.Value, Fields!CNUM.Value, Fields!START_LOCATION.Value,
Fields!FINISH_LOCATION.Value)







5

=Code.GetHiddenStatusForDetailColumns(First(Fields !COLUMN9.Value,
"RptWizGetReportColumnSQLColumnNames").ToString(),
Fields!CNUM.Value, Fields!CHART_COUNT.Value )



true
=Code.GetFormattedDetailRowValue(
First(Fields!COLUMN9.Value, "RptWizGetReportColumnSQLColumnNames"),
Fields!COLUMN9.Value, Fields!CNUM.Value, Fields!START_LOCATION.Value,
Fields!FINISH_LOCATION.Value)







4

=Code.GetHiddenStatusForDetailColumns(First(Fields !COLUMN10.Value,
"RptWizGetReportColumnSQLColumnNames").ToString(),
Fields!CNUM.Value, Fields!CHART_COUNT.Value )



true
=Code.GetFormattedDetailRowValue(
First(Fields!COLUMN10.Value, "RptWizGetReportColumnSQLColumnNames"),
Fields!COLUMN10.Value, Fields!CNUM.Value, Fields!START_LOCATION.Value,
Fields!FINISH_LOCATION.Value)







3

=Code.GetHiddenStatusForDetailColumns(First(Fields !COLUMN11.Value,
"RptWizGetReportColumnSQLColumnNames").ToString(),
Fields!CNUM.Value, Fields!CHART_COUNT.Value )



true
=Code.GetFormattedDetailRowValue(
First(Fields!COLUMN11.Value, "RptWizGetReportColumnSQLColumnNames"),
Fields!COLUMN11.Value, Fields!CNUM.Value, Fields!START_LOCATION.Value,
Fields!FINISH_LOCATION.Value)







2

=Code.GetHiddenStatusForDetailColumns(First(Fields !COLUMN12.Value,
"RptWizGetReportColumnSQLColumnNames").ToString(),
Fields!CNUM.Value, Fields!CHART_COUNT.Value )



true
=Code.GetFormattedDetailRowValue(
First(Fields!COLUMN12.Value, "RptWizGetReportColumnSQLColumnNames"),
Fields!COLUMN12.Value, Fields!CNUM.Value, Fields!START_LOCATION.Value,
Fields!FINISH_LOCATION.Value)







efaultName>textbox14efaultName>
1

true







efaultName>textbox1efaultName>

true





0.5cm

=Code.GetHiddenStatusForDetailRows(
Parameters!DisplayRestDays.Value, Fields!CNUM.Value,
Fields!CHART_COUNT.Value)






=Fields!WORKINGDATE.Value
Ascending











efaultName>textbox74efaultName>
85

true


true







efaultName>textbox78efaultName>
84

true


true







efaultName>textbox101efaultName>
83

true


true







82

true
Driver




4


81

true
=First(Fields!DRIVER_NAME.Value,
"list1_Details_Group")





2


80

true
Week Start




2


79

true
=Code.GetLocaleShortDateString(Code.GetLastMonday( First(Fields!WORKINGDATE.Value)),
Parameters!DUMMY_Culture.Value)





2


78

true
Week End




3


77

=Code.GetLocaleShortDateString(Code.GetNextSunday( Last(Fields!WORKINGDATE.Value)),
Parameters!DUMMY_Culture.Value)







efaultName>textbox102efaultName>
76

true


true







efaultName>textbox82efaultName>
75

true


true





0.5cm






efaultName>textbox77efaultName>
74

true


true







efaultName>textbox73efaultName>
73

true


true







efaultName>textbox81efaultName>
72

true


true







71

true
Date






efaultName>textbox4efaultName>
70

true
Reg






69

true
= First(Fields!COLUMN1.Value,
"RptWizGetReportColumnHeaderTexts")







68

true
= First(Fields!COLUMN2.Value,
"RptWizGetReportColumnHeaderTexts")







67

true
= First(Fields!COLUMN3.Value,
"RptWizGetReportColumnHeaderTexts")







66

true
= First(Fields!COLUMN4.Value,
"RptWizGetReportColumnHeaderTexts")







65

true
= First(Fields!COLUMN5.Value,
"RptWizGetReportColumnHeaderTexts")







64

true
= First(Fields!COLUMN6.Value,
"RptWizGetReportColumnHeaderTexts")







63

true
= First(Fields!COLUMN7.Value,
"RptWizGetReportColumnHeaderTexts")







62

true
= First(Fields!COLUMN8.Value,
"RptWizGetReportColumnHeaderTexts")







61

true
= First(Fields!COLUMN9.Value,
"RptWizGetReportColumnHeaderTexts")







60

true
= First(Fields!COLUMN10.Value,
"RptWizGetReportColumnHeaderTexts")







59

true
= First(Fields!COLUMN11.Value,
"RptWizGetReportColumnHeaderTexts")







58

true
= First(Fields!COLUMN12.Value,
"RptWizGetReportColumnHeaderTexts")







efaultName>textbox85efaultName>
57

true


true







efaultName>textbox86efaultName>
56

true


true





1.25cm


true



0.2cm


0.2cm


0.2cm


2cm


2.4cm


1.3cm


1.3cm


1.3cm


1.3cm


1.3cm


1.3cm


1.3cm


1.3cm


1.3cm


1.3cm


1.3cm


1.3cm


0.2cm


0.2cm


3.25cm


RptWizGet1WeekHoursLawBetweenDates
0.23545cm
=iif(Parameters!DUMMY_Culture.Value = "en-GB", "No Results
found for the specified Criteria",
Code.m_localization.TranslateText(Parameters!DUMMY _Culture.Value, 72, "No
Results found for the specified Criteria*" ))



true

=Fields!OPERATORID.Value
=Fields!OPERATOR_NAME.Value
=Fields!DEPOTID.Value
=Fields!DEPOT_NAME.Value
=Fields!CHART_YEAR.Value
=Fields!WEEK_NUMBER.Value
=Fields!ENUMBER.Value
=Fields!DRIVER_NAME.Value




9.5cm


3.25cm
true
true

75487597-8123-4ad4-84d3-67515e333464



StoredProcedure
stp_RS_GetDepotsForUser_WithALLOption


=Parameters!DUMMY_ExentraUserID.Value


TransportPortal02



System.Int32
DEPOTID


System.String
DepotName





StoredProcedure
stp_RS_GetDriversForDepotWithOptions


=Parameters!DepotIDs.Value


=Parameters!DriverStatus.Value


=Parameters!DriverType.Value


TransportPortal02



ENUMBER


DRIVER_NAME


DRIVERTYPE


ACTIVEIND





true
StoredProcedure
stp_RS_RptWizGet1WeekHoursLawBetweenDates_test


=Parameters!DUMMY_ExentraUserID.Value


=Parameters!DUMMY_ExentraReportID.Value


=Parameters!DepotIDs.Value


=Parameters!DUMMY_DriversList.Value


=Parameters!ReportPeriod.Value


=Parameters!ReportFrequency.Value


=Parameters!ReportFrequencyOffset.Value


=Parameters!StartDate.Value


=Parameters!EndDate.Value


=Parameters!DisplayRestDays.Value


=Parameters!DisplayDriversWithNoMsgs.Value


=Parameters!DisplayExceptions.Value


=Parameters!DisplayWTInfringements.Value


=Parameters!DUMMY_GlobalRSKeyID.Value


=Parameters!DUMMY_SubscriptionID.Value


=Parameters!DUMMY_Culture.Value


=Parameters!RptWizTemplateID.Value


-1


TransportPortal02



DEPOTID


DEPOT_NAME


OPERATORID


OPERATOR_NAME


WEEK_NUMBER


CHART_YEAR


WORKINGPERIODID


WORKINGDATE


CNUM


ENUMBER


DRIVER_NAME


VNUMBER


REG


CHART_COUNT


JOURNEYTYPE


MESSAGETYPEID


MESSAGETEXT


MESSAGETYPEDESC


COLUMN1


COLUMN2


COLUMN3


COLUMN4


COLUMN5


COLUMN6


COLUMN7


COLUMN8


COLUMN9


COLUMN10


COLUMN11


COLUMN12


START_LOCATION


FINISH_LOCATION





StoredProcedure
stp_RS_GetHeaderInfoForDepotID


=Parameters!DepotIDs.Value


TransportPortal02



System.Int32
DEPOTID


System.String
DEPOT_NAME


System.String
OPERATOR_NAME





StoredProcedure
stp_RS_GetSequenceOfNumbers


0


50


TransportPortal02



LABEL


VALUE





StoredProcedure
stp_RS_GetStartAndEndDatesForReportPeriod


=Parameters!ReportFrequency.Value


=Parameters!ReportFrequencyOffset.Value


TransportPortal02



System.String
START_DATE


System.String
END_DATE





StoredProcedure
stp_RS_RptWizGetReportColumnSQLColumnNames


=Parameters!RptWizTemplateID.Value


TransportPortal02



COLUMN1


COLUMN2


COLUMN3


COLUMN4


COLUMN5


COLUMN6


COLUMN7


COLUMN8


COLUMN9


COLUMN10


COLUMN11


COLUMN12





StoredProcedure
stp_RS_RptWizGetReportColumnHeaderTexts


=Parameters!RptWizTemplateID.Value


=Parameters!DUMMY_Culture.Value


TransportPortal02



COLUMN1


COLUMN2


COLUMN3


COLUMN4


COLUMN5


COLUMN6


COLUMN7


COLUMN8


COLUMN9


COLUMN10


COLUMN11


COLUMN12





StoredProcedure
stp_RS_RptWizGetReportHeaderText


=Parameters!RptWizTemplateID.Value


=Parameters!DUMMY_Culture.Value


TransportPortal02



System.String
REPORTHEADER





true
StoredProcedure
stp_RS_RptWizGetTemplateList_ForUserID


=Parameters!DUMMY_ExentraUserID.Value


=Parameters!DUMMY_ExentraReportID.Value


=Parameters!DUMMY_Culture.Value


TransportPortal02



System.Int32
TEMPLATEID


System.String
TEMPLATENAME





Exentra.RptMgmt.ReportingService.ReportUtils,
Version=1.0.0.1, Culture=neutral, PublicKeyToken=null


Function GetTextForVehicleReg(ByVal strVehicleReg As string) As
string
Dim strReturnVal as string
If (Trim(strVehicleReg) = "NULL VEH")
strReturnVal = "Rest Assumed"
else
strReturnVal = strVehicleReg
End if
GetTextForVehicleReg = strReturnVal
End Function

Function ConvertMinutesToHoursAndMinutes(ByVal p_minutes As Integer) As
String
Dim thisTimeSpan As TimeSpan
Dim hours as Integer
Dim days as Integer

thisTimeSpan = TimeSpan.FromMinutes(p_minutes)
days = thisTimeSpan.Days
hours = thisTimeSpan.Hours
hours += (24 * days)

Return hours.ToString("00") + ":" +
thisTimeSpan.Minutes.ToString("00")

End Function

Function GetHiddenStatusForWorkingPeriod_GroupFooter(ByVal
IntRunningValueRowsCount as Integer) As Boolean
Dim strReturnVal as Boolean = True

''If There are more than 1 Row then Make the Group Footer Visible
If (IntRunningValueRowsCount > 1)
strReturnVal = False
End if
GetHiddenStatusForWorkingPeriod_GroupFooter = strReturnVal
End Function

Function GetHiddenStatusForDetailRows(ByVal strDisplayRestDays as String, _
ByVal IntCNUM as Integer, ByVal intChartCount as Integer) As Boolean
Dim strReturnVal as Boolean = False

''If this row is just a Dummy row for Working period group totals(split
from working group fallen in two different weeks)
if (intChartCount = -999)
strReturnVal = True ''RETURN TRUE (FOR VISIBILITY - HIDDEN = TRUE)
else
''Check this only when User Want to Hide the Rest days rows
If (strDisplayRestDays = "FALSE")
''Check for CNUM ''If it is greater than 1 RETURN TRUE (FOR VISIBILITY -
HIDDEN = TRUE)
If (IntCNUM = 1)
strReturnVal = True
End if
End if
End If
GetHiddenStatusForDetailRows = strReturnVal
End Function

Function GetHiddenStatusForDetailColumns(ByVal strSQLColumnName as String, _
ByVal intCNUM as Integer, ByVal intNoOfRowsInWK_PeriodGroup as Integer)
As Boolean
Dim strReturnVal as Boolean = False

''intCNUM will be 1 for REST DAYS
If intCNUM = 1 Then
strReturnVal = True
Else
''First Check strSQLColumnName
If (strSQLColumnName = "DAILY_REST" OR strSQLColumnName =
"TOTAL_SHIFT_TIME")
IF (intNoOfRowsInWK_PeriodGroup > 1)
strReturnVal = True
END IF
End if
End if
GetHiddenStatusForDetailColumns = strReturnVal
End Function

Function GetFormattedDetailRowValue(ByVal strSQLColumnName as String, _
ByVal strColumnDetailRowValue as String, ByVal intCNUM as Integer, _
ByVal strStartLocation as String, ByVal strFinishLocation as String) As
String
''This function checks strSQLColumnName and gives back the formatted
strColumnDetailRowValue

Dim strReturnVal as String = ""

If strColumnDetailRowValue <> "" Then
Select strSQLColumnName
Case "START_OF_DUTY"
strReturnVal = IIF(intCNUM = 1, "",
ConvertMinutesToHoursAndMinutes(Convert.ToInt32(st rColumnDetailRowValue)))
Case "END_OF_DUTY"
strReturnVal = IIF(intCNUM = 1, "",
ConvertMinutesToHoursAndMinutes(Convert.ToInt32(st rColumnDetailRowValue)))
Case "DAILY_REST"
strReturnVal = IIF(intCNUM = 1, "",
ConvertMinutesToHoursAndMinutes(Convert.ToInt32(st rColumnDetailRowValue)))
Case "TOTAL_FORTNIGHT_DRIVE"
strReturnVal = IIF(intCNUM = 1, "",
ConvertMinutesToHoursAndMinutes(Convert.ToInt32(st rColumnDetailRowValue)))
Case "DAILY_DRIVE_TIME"
strReturnVal = IIF(intCNUM = 1, "",
ConvertMinutesToHoursAndMinutes(Convert.ToInt32(st rColumnDetailRowValue)))
Case "OTHER_WORK"
strReturnVal = IIF(intCNUM = 1, "",
ConvertMinutesToHoursAndMinutes(Convert.ToInt32(st rColumnDetailRowValue)))
Case "TOTAL_DUTY_TIME"
strReturnVal = IIF(intCNUM = 1, "",
ConvertMinutesToHoursAndMinutes(Convert.ToInt32(st rColumnDetailRowValue)))
Case "TOTAL_SHIFT_TIME"
strReturnVal = IIF(intCNUM = 1, "",
ConvertMinutesToHoursAndMinutes(Convert.ToInt32(st rColumnDetailRowValue)))
Case "START_LOCATIONID"
strReturnVal = strStartLocation
Case "FINISH_LOCATIONID"
strReturnVal = strFinishLocation
Case "ODOSTART"
strReturnVal = strColumnDetailRowValue
Case "ODOFINISH"
strReturnVal = strColumnDetailRowValue
Case "ODODIFF"
strReturnVal = strColumnDetailRowValue
Case "STYLUS_DISTANCE"
strReturnVal = strColumnDetailRowValue
Case "TOTAL_LOAD_UNLOAD"
strReturnVal = IIF(intCNUM = 1, "",
ConvertMinutesToHoursAndMinutes(Convert.ToInt32(st rColumnDetailRowValue)))
Case "TOTAL_DEPOT"
strReturnVal = IIF(intCNUM = 1, "",
ConvertMinutesToHoursAndMinutes(Convert.ToInt32(st rColumnDetailRowValue)))
Case "TOTAL_BREAK"
strReturnVal = IIF(intCNUM = 1, "",
ConvertMinutesToHoursAndMinutes(Convert.ToInt32(st rColumnDetailRowValue)))
Case "DRIVE_START"
strReturnVal = IIF(intCNUM = 1, "",
ConvertMinutesToHoursAndMinutes(Convert.ToInt32(st rColumnDetailRowValue)))
Case "TOTAL_ACTIVE_WORK"
strReturnVal = IIF(intCNUM = 1, "",
ConvertMinutesToHoursAndMinutes(Convert.ToInt32(st rColumnDetailRowValue)))
Case "TOTAL_PASSIVE_WORK"
strReturnVal = IIF(intCNUM = 1, "",
ConvertMinutesToHoursAndMinutes(Convert.ToInt32(st rColumnDetailRowValue)))
Case "WTD_TOTAL_POA"
strReturnVal = IIF(intCNUM = 1, "",
ConvertMinutesToHoursAndMinutes(Convert.ToInt32(st rColumnDetailRowValue)))
Case "WTD_TOTAL_WORK"
strReturnVal = IIF(intCNUM = 1, "",
ConvertMinutesToHoursAndMinutes(Convert.ToInt32(st rColumnDetailRowValue)))
Case "FUEL"
strReturnVal = strColumnDetailRowValue
Case "AVG_SPEED"
strReturnVal = strColumnDetailRowValue
Case "CHART_NUMBER"
strReturnVal = strColumnDetailRowValue
End Select
End if

GetFormattedDetailRowValue = strReturnVal
End Function

Function IsThisAWorkingPeriodGroupColumn(ByVal strSQLColumnName as String)
As Boolean
''This function checks strSQLColumnName to if WorkingPeriod Group Total is
to be displayed for this Column
''and gives back the True or False

Dim strReturnVal as Boolean = False

Select strSQLColumnName
Case "DAILY_REST"
strReturnVal = True
Case "DAILY_DRIVE_TIME"
strReturnVal = True
Case "TOTAL_SHIFT_TIME"
strReturnVal = True
End Select

IsThisAWorkingPeriodGroupColumn = strReturnVal
End Function

Function DisplayThisColumnsWeeklyTotalAsHH_MM(ByVal strSQLColumnName as
String) As Boolean
''This function checks strSQLColumnName to see if Weekly Total applies to
this Column
''and gives back the True or False
''Returns true only for the columns whose Weekly total is to be displayed in
HH:MM format

Dim strReturnVal as Boolean = False

Select strSQLColumnName
Case "DAILY_REST"
strReturnVal = True
Case "DAILY_DRIVE_TIME"
strReturnVal = True
Case "OTHER_WORK"
strReturnVal = True
Case "TOTAL_SHIFT_TIME"
strReturnVal = True
Case "TOTAL_LOAD_UNLOAD"
strReturnVal = True
Case "TOTAL_DEPOT"
strReturnVal = True
Case "TOTAL_BREAK"
strReturnVal = True
Case "TOTAL_ACTIVE_WORK"
strReturnVal = True
Case "TOTAL_PASSIVE_WORK"
strReturnVal = True
Case "WTD_TOTAL_POA"
strReturnVal = True
Case "WTD_TOTAL_WORK"
strReturnVal = True
End Select

DisplayThisColumnsWeeklyTotalAsHH_MM = strReturnVal
End Function

Function DisplayThisColumnsWeeklyTotalAsInteger(ByVal strSQLColumnName as
String) As Boolean
''This function checks strSQLColumnName to see if Weekly Total applies to
this Column
''and gives back the True or False
''Returns true only for the columns whose Weekly total is to be displayed as
an Integer

Dim strReturnVal as Boolean = False

Select strSQLColumnName
Case "ODODIFF"
strReturnVal = True
Case "STYLUS_DISTANCE"
strReturnVal = True
Case "FUEL"
strReturnVal = True
End Select

DisplayThisColumnsWeeklyTotalAsInteger = strReturnVal
End Function


''This function is created on 09/12/2004 to get the exact daily_rest for
whole period
Function GetWorkingPeriodGroupRowColumnTotal(ByVal strSQLColumnName as
String, _
ByVal intTotalFieldValueForWKPGroup as Integer) As String
''This function checks strSQLColumnName to if WorkingPeriod Group Total is
to be displayed for this Column
''and gives back the relevant value back

Dim strReturnVal as String = ""
''Return the Total Only For Columns defined in
IsThisAWorkingPeriodGroupColumn
IF (IsThisAWorkingPeriodGroupColumn(strSQLColumnName) = True) Then
strReturnVal =
ConvertMinutesToHoursAndMinutes(intTotalFieldValue ForWKPGroup)
End IF

GetWorkingPeriodGroupRowColumnTotal = strReturnVal
End Function

''This function is created on 09/12/2004 to get the exact totals for whole
week
Function GetWeeklyTotalsRowColumnValue(ByVal strSQLColumnName as String, _
ByVal intWeeklyTotalColumnValue as Integer) As String
''This function checks strSQLColumnName to see if the Weekly Total for the
column to be displayed,
''if to be displayed what format is to be in "HH:MM" or as an Integer
Dim strReturnVal as String = ""

IF(DisplayThisColumnsWeeklyTotalAsHH_MM(strSQLColu mnName) = True) Then
strReturnVal = ConvertMinutesToHoursAndMinutes(intWeeklyTotalColu mnValue )
else if (DisplayThisColumnsWeeklyTotalAsInteger(strSQLColu mnName) = True)
Then
strReturnVal = intWeeklyTotalColumnValue.ToString()
End If

GetWeeklyTotalsRowColumnValue = strReturnVal
End Function

''This function is created on 13/12/2004 to Change the Report Header
according to Journey Type
Function GetReportHeaderWithJourneyType(ByVal strReportHeaderFromTemplate as
String, _
ByVal strJourneyType as String) As String
Dim strReturnVal as String = ""

Select Case strJourneyType
Case "0"
strReturnVal = vbCrLf & " Goods Vehicle EC Rules*"
Case "1"
strReturnVal = vbCrLf & " Goods Vehicle Domestic
Rules*"
Case "2"
strReturnVal = vbCrLf & " PCV Regular Services*"
Case "3"
strReturnVal = vbCrLf & " PCV Non-Regular Services*"
End Select

GetReportHeaderWithJourneyType = strReportHeaderFromTemplate &
strReturnVal
End Function

public function GetLastMonday(ByVal dtWorkingDate as DateTime) as DateTime
Dim strReturnVal as DateTime

''--GET THE LAST MONDAY
strReturnVal = DateAdd(DateInterval.Day, -1 * (WeekDay(dtWorkingDate,
FirstDayOfWeek.Monday) - 1), dtWorkingDate)

GetLastMonday = strReturnVal
End Function

public function GetNextSunday(ByVal dtWorkingDate as DateTime) as DateTime
Dim strReturnVal as DateTime

''--GET THE NEXT SUNDAY
strReturnVal = DateAdd(DateInterval.Day, 7 - WeekDay(dtWorkingDate,
FirstDayOfWeek.Monday), dtWorkingDate)

GetNextSunday = strReturnVal
End Function

Function GetLocaleShortDateString( ByVal dtConvertDateTime as DateTime,
ByVal strLocale as string ) as String
Dim DTFormat = New System.Globalization.CultureInfo( strLocale,
True).DateTimeFormat
GetLocaleShortDateString=Format( dtConvertDateTime,
DTFormat.ShortDatePattern)
End Function



21cm
11in


Exentra.RptMgmt.ReportingService.ReportUtils.Local ization
m_localization


en-GB



0.60582cm
1
20cm

0cm


0.6cm
4.72089cm
20cm

0cm


5.75cm
true
true

1cm
29.7cm



"Wei Lu [MSFT]" wrote in message
news:9oAE027OIHA.5204@TK2MSFTNGHUB02.phx.gbl...
> Hello,
>
> I would like to get the report definition so that I can go for further
> assistance.
>
> Sincerely,
>
> Wei Lu
> Microsoft Online Community 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.
>



Reply With Quote
  #16  
Old 12-17-2007, 02:05 AM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Export To Excel throws Error WrapperReportRenderingException

Hello Chris,

I could see your post, but I could not see other posts.

You may send the rdl file to me directly. To get me email address, please
remove the ONLINE in my display email address.

Sincerely,

Wei Lu
Microsoft Online Community 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.

Reply With Quote
  #17  
Old 12-13-2009, 10:50 AM
Database Newbie
 
Join Date: Jul 2009
Posts: 14
shijobaby is on a distinguished road
Default Re: Export To Excel throws Error WrapperReportRenderingException

http://crystalrepterrinfo.blogspot.c...ng-client.html
Reply With Quote
Reply

Thread Tools
Display Modes



All times are GMT -4. The time now is 12:07 PM.