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,AmolRetail Relam
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 ?
Hello,
I have faced the same problem, Although I have not found the right solution but manage to get the data in pdf. if i squezee the grid columns and then if i export i can see the columns in the pdf. try this i think we are required to do some runtime formating like setting the page size,margin etc.