Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1147
Urgent - UltraWebGrid Exporting - PDF & XPS - Empty/partial data file
posted

Hi Experts,

 I am using UltraWebGrid to bind some data, and then export it to the pdf file.

 I dont know why it is rendering the pdf file with may be partial data.

 For more clarification , I am attaching the screen shot of .pdf file(see on the left of image, it shows something, may be row selector) , and the HTML markup I am using  for WebGrid.

 <igtbl:UltraWebGrid id="UltraGridKeyTracker" runat="server" EnableAppStyling="True"
                                   StyleSetName="Office2007Silver" Visible="False"
                                      Width="100%" Height="100%">
                                        <Bands>
                                            <igtbl:UltraGridBand>
                                                <AddNewRow View="NotSet" Visible="NotSet">   </AddNewRow>
                                            </igtbl:UltraGridBand>
                                        </Bands>
               <DisplayLayout ColWidthDefault="" Name="InfraGridxEndUsers"
               RowHeightDefault="15px" SelectTypeRowDefault="Single" Version="4.00"
               ViewType="OutlookGroupBy"  GroupByColumnsHiddenDefault="No" IndentationDefault="15"
               SelectTypeCellDefault="Single" SelectTypeColDefault="NotSet"
               AllowColumnMovingDefault="OnClient" HeaderClickActionDefault="NotSet"
               AllowSortingDefault="OnClient" AllowUpdateDefault="No" NoDataMessage="Credit Key Not Found!" >                    <FilterOptionsDefault AllowRowFiltering="OnServer" FilterUIType="FilterRow"> </FilterOptionsDefault> 
                            <SelectedRowStyleDefault BackColor="Silver"> </SelectedRowStyleDefault>
            <ActivationObject BorderColor="" BorderWidth=""> </ActivationObject>
            <FrameStyle Width="100%" Height="100%"></FrameStyle>
            <RowStyleDefault Font-Names="Verdana" Font-Size="8pt" Height="18px"></RowStyleDefault>
                <RowSelectorStyleDefault Height="18px"> </RowSelectorStyleDefault>
             </DisplayLayout>
        </igtbl:UltraWebGrid>

I have inserted the both the excel and document exporter on the page , and then executed the following code for PDF generation

 UltraWebGridDocExport.Format = FileFormat.PDF;
 UltraWebGridDocExport.DownloadName = "Report";
 UltraWebGridDocExport.TargetPaperOrientation = PageOrientation.Portrait;
 UltraWebGridDocExport.ExportMode =  Infragistics.WebUI.UltraWebGrid.Exporter.ExportMode.Download;
 UltraWebGridDocExport.AutoSizeRows = Infragistics.WebUI.Shared.DefaultableBoolean.True;
 // trigger export
 UltraWebGridDocExport.Export(UltraGridKeyTracker); 

Any help?

I am using VS 2008 - 3.5 with Infragistics 9.1.

 

Thanks & Regards,
Amol
Retail Relam

 

 

 

Parents
  • 1147
    posted

    This is really frustating...

    Its shows be data only if I remove a StyleSetName="Office2007Silver"  and ColWidthDefault=""

    from the HTML markup.

    Can some one from infragistics explain this ?

    It is not possible to attach a styleSet if I want to export the data in PDF and XPS ?

Reply Children
No Data