You need to sign in to do that
Don't have an account?
BrianWK
Message Edited by BrianWK on 12-18-2008 10:09 AM
Renderas="pdf" returns visualforce error index: 0, size:0
I have a visualforce page that renders perfectly fine in HTML. However, when I set Renderas="pdf" I get a gray header box labelled "VisualForce Error" and below it "Index:0, Size:0"
Are there any gotchas for renderas="pdf" that would return this error? I've done other pages that did similar functions and rendered fine as a pdf. The only thing I can think of is I have a lot of HTML and some Javascript on the page. I tried removing the javascript - but still receive the index:0 size:0 error.
What would cause the page to look great in HTML but not work in PDF?
Message Edited by BrianWK on 12-18-2008 10:09 AM
See this thread for my discussion of it. I ended up implementing a solution that is very similar to what I described -- basically PDF requests first hit a non-PDF page with a controller to gather the data they need, then save it into an SObject, and then redirect to the .page file which has renderAs="pdf", with the ID of the persisted SObject passed via URL.
I have logged this as a case with customer support, and Doug Chasman has already coded up a fix for it which hopefully we will see in the spring release!
Jeremy Kraybill
Austin, TX
HTH.
Jeremy Kraybill
Austin, TX
Jeremy Kraybill
Austin, TX
I'm still getting this error...was this fixed? I'm trying to sort some OpportunityLineItems and in order to do that I had to use a custom component in the visualforce page...works fine without renderAs="PDF"...but once I add that in there, it gives me this visualforce error...
???