You need to sign in to do that
Don't have an account?

How do you fetch a document stored in article of some articletype and show it in a visualforce page
A document is uploaded to an article of some Article type, How to you fetch it in a Visualforce page and display ?
You have to make use of Object Contentversion and use query example given below
[select id, Title, Description, FileType,
Owner.Name, VersionNumber from ContentVersion
Where IsLatest = true]
Exactly this cookbook article should get your job done.
http://developer.force.com/cookbook/recipe/displaying-salesforce-crm-content-documents-in-a-visualforce-page
Regards
Nitesh
I think that is the wrong way to create a document through apex.In my Opinion either you use Blob or Document type instance to create document and then store doc inthis object instance.Better you refer this cookbook link given below as to how include refer document in apex.
http://developer.force.com/cookbook/recipe/uploading-a-document-using-visualforce-and-a-custom-controller
Regards
Nitesh