• Patcs
  • NEWBIE
  • 75 Points
  • Member since 2010

  • Chatter
    Feed
  • 2
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 52
    Questions
  • 62
    Replies

I need to embed a VF page into the Home page tab.  So far I have made a HTML area component under Home Page Components.  Within the component, I use this to iframe in the VF page:

 

<iframe src="/apex/My_VF_Page"></iframe>

 

However, the result shows the entire page, not just the VF page:

 

 

So the question is, how do I just display the VF page's content?

 

Hi there, I'm quite new to coding and to apex so please bare with me. :smileywink:

 

I am trying to create an soql query which I essentially want to work like this:

 

SELECT Id FROM Log_Book__c WHERE Owner Id = Current User Id 

 

Does anyone know how I can achieve this?

 

Thank you for your time.

 

 

  • March 08, 2011
  • Like
  • 0

Hi

 

In my project they are using salesforce portal for partner user, in that portal they are displaying java application in Iframe. while login it will login into salesforce and then when we click the link for java application then it will login intojava application. while logout i am facing the issue.

 

while logout, it should logout from java application and then from salesforce. In win 7 and IE8 alone it is directed to blank page and logged out from salesforce and not from Java application. It is working perfectly in win xp and IE8.

 

Any Idea of how to avoid blank page in win7 and IE8

 

Thanks in advance.

  • March 29, 2013
  • Like
  • 0
Hi

 

In my project they are using salesforce portal for partner user, in that portal they are displaying java application in Iframe. while login it will login into salesforce and then when we click the link for java application then it will login intojava application. while logout i am facing the issue.

 

while logout, it should logout from java application and then from salesforce. In win 7 and IE8 alone it is directed to blank page and logged out from salesforce and not from Java application. It is working perfectly in win xp and IE8.

 

Any Idea of how to avoid blank page in win7 and IE8

 

Thanks in advance.
  • March 29, 2013
  • Like
  • 0

Hi

 

In my project they are using salesforce portal for partner user, in that portal they are displaying java application in Iframe. while login it will login into salesforce and then when we click the link for java application then it will login intojava application. while logout i am facing the issue.

 

while logout, it should logout from java application and then from salesforce. In win 7 and IE8 alone it is directed to blank page and logged out from salesforce and not from Java application. It is working perfectly in win xp and IE8.

 

Any Idea of how to avoid blank page in win7 and IE8

 

Thanks in advance.

  • March 24, 2013
  • Like
  • 0

Hi All

 

My requriment is to display signature in PDF, so i have used canvas in html5 to capture the signature and display in UI. In UI it is working perfectly but when i convert the VF into PDF the image is not displayed. the image URL will start like this "data:image/png;base64,", when i searched in google there is an idea posted stating that the URL "data:image/png;base64," is not supported in PDF.

 

is there any alternate way to display the image in PDF, please let me know.

 

Thanks in advance!!!!

  • November 23, 2012
  • Like
  • 0

Hi

 

I have Picklist  and Date fields in a Object, if the date is less that today then the picklist value should changed into expired. I.e.. When I choose the date of today,tomorrow the picklist should automatically change the value to expired.

 

Please Help me in this, It is very urgent for me...

  • September 04, 2012
  • Like
  • 0

Hi 

 

Below is the requriment, i need the solution for that.

 

There is an approval process and when the legal team approves it, system should create a PDF file and digital signature of the person who approved it should embedded automatically. Legal team size would be 3-4 people.

 

 

  • August 30, 2012
  • Like
  • 0

Hi 

 

I have a requriment were they need the entrie opportunity page should be designed in HTML5, so we have designed  a opportunity edit  page in HTML5 but we are facing the issue in saving the record. we are not able to get the value which have enterted in HTML input type tag.

 

Please suggest some solution!!!

 

Thanks in advance....

  • May 05, 2012
  • Like
  • 0

Hi

 

I have changed the datatype Long Text Area into Rich text.some visualforce page is there based on this field, and that VF page  is not working when i changed Long text area into Rich text, it is throwing an error "Rerender is not supported" , then i have removed the rerender from the command button, but that redender is doing some functionality. is there any other way to achive rerender functionality, I am posting the code also, please take a look at it.

 

<apex:form id="form">
        <apex:outputPanel layout="none" rendered="{!readPermissions}">
            <apex:pageBlock id="pageBlock">
           
                <apex:actionStatus id="AjaxStatus" onstart="DisableButton()" onstop="EnableButton()">
                </apex:actionStatus>
               
                <script>
                   
                    var previousOnload = window.onload;       
                    window.onload = function() {
                        if (previousOnload) {
                            previousOnload();
                        }
                        document.getElementById('divLoading').style.visibility = 'hidden';
                    }
                   
                    function DisableButton() {
                        document.getElementById('divLoading').style.visibility = 'visible';
                        document.getElementById("{!$Component.form.pageBlock.buttons.saveButton}").disabled=true;
                    }
                   
                    function EnableButton() {
                        document.getElementById('{!$Component.form.pageBlock.buttons.saveButton}').disabled=false;
                        document.getElementById('divLoading').style.visibility = 'hidden';
                    }
                   
                </script>
<apex:pageBlockButtons id="buttons" location="top">
                    <apex:commandButton action="{!step3}" value="{!$Label.Previous_Button_Label}" id="previousButton" />
                    <apex:commandButton action="{!save}" value="{!$Label.Save_Button_Label}" id="saveButton" status="AjaxStatus" rerender="form"/>
                    <apex:commandLink action="{!cancel}" value="{!$Label.Cancel_Button_Label}" id="cancelButton" />
                </apex:pageBlockButtons>

and the notes code is

<apex:outputPanel id="notesContainer">
                    <table >
                        <thead>
                            <tr>
                                <th><apex:outputText value="{!$ObjectType.Agreement__c.fields.Notes__c.label}" id="esaNotesLabel"/></th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                               <td ><apex:inputTextArea richtext="True" styleClass="tableTextArea" value="{!Agreement__c.Notes__c}" id="esaNotes"/></td>
   
                                </tr>
                        </tbody>
                    </table>
                </apex:outputPanel>

  • February 08, 2012
  • Like
  • 0

Hi

 

how to make a call to the API out of the class ?

  • January 31, 2012
  • Like
  • 0

Hi

 

while converting Text Area(Long) Data Type into Text Area(Rich) will existing data be lost?

 

Thanks!

  • December 19, 2011
  • Like
  • 0

Hi

 

I want to create a relation ship between custom object and opportunity Product, when i tried the Master detail/lookup relation in custom object, there is no way to choose the opportunity product. is there any other way to create the relationship between Opportunity product and custom object.

 

Thanks in Advance!

  • November 22, 2011
  • Like
  • 0

Hi


In Email Template, I want to display the details of child object field, when i tried it is not working for me can any please help me in this

Thanks in Advance!

  • October 23, 2011
  • Like
  • 0

Hi

 

In my project i have an requirement, that the Quote data should be auto populated from Opportunity, when i am clicking on the new quote button from the related list, and this field should be editedable, when user is changing the data in the field it should be changed and updated.

 

Thanks in Advance!

  • October 14, 2011
  • Like
  • 0

Hi


In my visualforce page I have 3 tables, in that 3 tables if status = "complete" then two tables should be read only and one table should be editable only once i.e if user is edited that table once after saving, if he tried to edit that table again, he should not able to edit it. I have made the 2 tables as only when the status = complete, but i don't know how to write a logic for editing the table only once when the status="complete"


 can any body please help me on this.

 

Thanks in Advance!!!

  • October 02, 2011
  • Like
  • 0

Hi

 

I am doing some data migration for sales team in Opportunity. I want to update the Access level to read\write. how can I do that?  when I tried for maaping fields, it is not mapping  in data loader, i want to know how can i get that field to mapped in data loader.

 

Thanks in Advance!!

  • September 30, 2011
  • Like
  • 0

Hi All

 

Below is the code,

 

<apex:repeat value="{!listASPSubCategories}" var="oneSubCategory" id="aspSubCategoriesShipment">
<tr>
<td style="white-space: nowrap; width:9%;">

<apex:outputField value="{!oneSubCategory.Material_Sub_Category__r.Name}" id="nameShipment" />

</td>
<apex:repeat value="{!oneSubCategory.ASP_Item_Volume__r}" var="oneASPItemVolforSubCatg" id="aspSubCategoriesShipment">
<td class="customTableNumberCell" style="width:7%;">

<apex:inputField  styleClass="tableNumberTextField" value="{!oneASPItemVolforSubCatg.Volume_Forecast__c}" id="aspItemVolforSubCatgShipment"  style="text-align: right !important;padding-left: 2px !important;padding-right: 2px !important; width:90%;" rendered="{!visibleCurrentSupplyPlan}"/><

/td>
<!--<td class="customTableNumberCell" style="width:7%;">

<apex:inputText styleClass="tableNumberTextField" value="{!oneASPItemVolforSubCatg.Volume_Forecast__c}" id="aspItemVolforSubCatgShipment"  style="text-align: right !important;padding-left: 2px !important;padding-right: 2px !important; width:90%;" disabled="{!visibleCurrentSupplyPlan}"  />

</td> -->                            
</apex:repeat>
<td class="customTableNumberCell" style="width:7%;">

<apex:outputField styleClass="tableNumberTextField" value="{!oneSubCategory.Total_Volume_Forecast__c}" id="aspSubCatgTotalShipment" />

</td>
</tr>
</apex:repeat>

 


I am facing issue in <apex:Inputfield>, if I am giving the render= true, it is not at all displaying the data. Actually I don't want to edit the data, I just want to view the data in <apex:Inputfield> and I also tried using <apex:Input text> disable attribute, it is showing the numbers with decimal point i.e..(123.0) I don't want to see the .0 value into the field.

This above is for Edit page, if "status=complete" have to make this table to be readonly.


Please help!

  • September 28, 2011
  • Like
  • 0

Hi


I want to override the clone functionality in Apex code. My scenario is that I want my opportunity to be cloned with the close date of cloned oppty+365 days, and the cloned oppty should not save unless and until I hit the save, it should not save.


I want this code to be deliver by tomorrow. please help me....

Thanks in Advance!

  • September 23, 2011
  • Like
  • 0

Hi

 

When Showheader="false" in <apex:Page> i am loosing my tab style. i need the style simillar to home page, but now i am getting black color.

 

can any one help on this

 

Thanks.

  • September 08, 2011
  • Like
  • 0

Hi

 

When Showheader="false" in <apex:Page> i am loosing my tab style. i need the style simillar to home page, but now i am geeting black color.

 

can any one help on this

 

Thanks.

  • September 08, 2011
  • Like
  • 0

Hi

 

When Showheader="false" in <apex:Page> i am loosing my tab style. i need the style simillar to home page, but now i am geeting black color.

 

can any one help on this

 

Thanks.

  • September 08, 2011
  • Like
  • 0

Hi All

 

My requriment is to display signature in PDF, so i have used canvas in html5 to capture the signature and display in UI. In UI it is working perfectly but when i convert the VF into PDF the image is not displayed. the image URL will start like this "data:image/png;base64,", when i searched in google there is an idea posted stating that the URL "data:image/png;base64," is not supported in PDF.

 

is there any alternate way to display the image in PDF, please let me know.

 

Thanks in advance!!!!

  • November 23, 2012
  • Like
  • 0

Hi

 

I have Picklist  and Date fields in a Object, if the date is less that today then the picklist value should changed into expired. I.e.. When I choose the date of today,tomorrow the picklist should automatically change the value to expired.

 

Please Help me in this, It is very urgent for me...

  • September 04, 2012
  • Like
  • 0

I am reasonably certain I am doing everything exactly as instructed.

 

Following the workbook line by line, by the time I reach page 5 and run the app:

 

HTTP Status 500 -


type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Servlet.init() for servlet spring threw exception
	org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
	org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964)
	org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
	org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
	java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
	java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
	java.lang.Thread.run(Thread.java:636)

 

This is surprising, typically the Force.com workbooks are flawless and following the examples works as expected.

 

Anyone else notice this, or is this user error?

 

 

  • August 05, 2012
  • Like
  • 0

I am displaying the name of the asset on a page like this <apex:outputField id="CaseField3" value="{!Case.AssetId}"/>.

 

This displays the name of the asset as a link since this is a lookup relationship, therefore, the user can click on it and is taken to the asset page. I would like to prevent that from happening, is there a way to remove the hyperlink and just display the name? or at least don't do anything if the user clicks on the link ?

 

 

Hi 

 

I have a requriment were they need the entrie opportunity page should be designed in HTML5, so we have designed  a opportunity edit  page in HTML5 but we are facing the issue in saving the record. we are not able to get the value which have enterted in HTML input type tag.

 

Please suggest some solution!!!

 

Thanks in advance....

  • May 05, 2012
  • Like
  • 0

Hi

 

I have changed the datatype Long Text Area into Rich text.some visualforce page is there based on this field, and that VF page  is not working when i changed Long text area into Rich text, it is throwing an error "Rerender is not supported" , then i have removed the rerender from the command button, but that redender is doing some functionality. is there any other way to achive rerender functionality, I am posting the code also, please take a look at it.

 

<apex:form id="form">
        <apex:outputPanel layout="none" rendered="{!readPermissions}">
            <apex:pageBlock id="pageBlock">
           
                <apex:actionStatus id="AjaxStatus" onstart="DisableButton()" onstop="EnableButton()">
                </apex:actionStatus>
               
                <script>
                   
                    var previousOnload = window.onload;       
                    window.onload = function() {
                        if (previousOnload) {
                            previousOnload();
                        }
                        document.getElementById('divLoading').style.visibility = 'hidden';
                    }
                   
                    function DisableButton() {
                        document.getElementById('divLoading').style.visibility = 'visible';
                        document.getElementById("{!$Component.form.pageBlock.buttons.saveButton}").disabled=true;
                    }
                   
                    function EnableButton() {
                        document.getElementById('{!$Component.form.pageBlock.buttons.saveButton}').disabled=false;
                        document.getElementById('divLoading').style.visibility = 'hidden';
                    }
                   
                </script>
<apex:pageBlockButtons id="buttons" location="top">
                    <apex:commandButton action="{!step3}" value="{!$Label.Previous_Button_Label}" id="previousButton" />
                    <apex:commandButton action="{!save}" value="{!$Label.Save_Button_Label}" id="saveButton" status="AjaxStatus" rerender="form"/>
                    <apex:commandLink action="{!cancel}" value="{!$Label.Cancel_Button_Label}" id="cancelButton" />
                </apex:pageBlockButtons>

and the notes code is

<apex:outputPanel id="notesContainer">
                    <table >
                        <thead>
                            <tr>
                                <th><apex:outputText value="{!$ObjectType.Agreement__c.fields.Notes__c.label}" id="esaNotesLabel"/></th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                               <td ><apex:inputTextArea richtext="True" styleClass="tableTextArea" value="{!Agreement__c.Notes__c}" id="esaNotes"/></td>
   
                                </tr>
                        </tbody>
                    </table>
                </apex:outputPanel>

  • February 08, 2012
  • Like
  • 0

Hi

 

how to make a call to the API out of the class ?

  • January 31, 2012
  • Like
  • 0

Hi All

 

Below is the code,

 

<apex:repeat value="{!listASPSubCategories}" var="oneSubCategory" id="aspSubCategoriesShipment">
<tr>
<td style="white-space: nowrap; width:9%;">

<apex:outputField value="{!oneSubCategory.Material_Sub_Category__r.Name}" id="nameShipment" />

</td>
<apex:repeat value="{!oneSubCategory.ASP_Item_Volume__r}" var="oneASPItemVolforSubCatg" id="aspSubCategoriesShipment">
<td class="customTableNumberCell" style="width:7%;">

<apex:inputField  styleClass="tableNumberTextField" value="{!oneASPItemVolforSubCatg.Volume_Forecast__c}" id="aspItemVolforSubCatgShipment"  style="text-align: right !important;padding-left: 2px !important;padding-right: 2px !important; width:90%;" rendered="{!visibleCurrentSupplyPlan}"/><

/td>
<!--<td class="customTableNumberCell" style="width:7%;">

<apex:inputText styleClass="tableNumberTextField" value="{!oneASPItemVolforSubCatg.Volume_Forecast__c}" id="aspItemVolforSubCatgShipment"  style="text-align: right !important;padding-left: 2px !important;padding-right: 2px !important; width:90%;" disabled="{!visibleCurrentSupplyPlan}"  />

</td> -->                            
</apex:repeat>
<td class="customTableNumberCell" style="width:7%;">

<apex:outputField styleClass="tableNumberTextField" value="{!oneSubCategory.Total_Volume_Forecast__c}" id="aspSubCatgTotalShipment" />

</td>
</tr>
</apex:repeat>

 


I am facing issue in <apex:Inputfield>, if I am giving the render= true, it is not at all displaying the data. Actually I don't want to edit the data, I just want to view the data in <apex:Inputfield> and I also tried using <apex:Input text> disable attribute, it is showing the numbers with decimal point i.e..(123.0) I don't want to see the .0 value into the field.

This above is for Edit page, if "status=complete" have to make this table to be readonly.


Please help!

  • September 28, 2011
  • Like
  • 0

Hi


I want to override the clone functionality in Apex code. My scenario is that I want my opportunity to be cloned with the close date of cloned oppty+365 days, and the cloned oppty should not save unless and until I hit the save, it should not save.


I want this code to be deliver by tomorrow. please help me....

Thanks in Advance!

  • September 23, 2011
  • Like
  • 0

I need to embed a VF page into the Home page tab.  So far I have made a HTML area component under Home Page Components.  Within the component, I use this to iframe in the VF page:

 

<iframe src="/apex/My_VF_Page"></iframe>

 

However, the result shows the entire page, not just the VF page:

 

 

So the question is, how do I just display the VF page's content?

 

Hi all,

 

   I'm new to Salesforce Apex Development. I'm getting the following error while running the Test Class.

 

Message :

 

System.DmlException: Update failed. First exception on row 0 with id 01uM0000000bBPqIAM; first error: REQUIRED_FIELD_MISSING, Required fields are missing: [UnitPrice]: [UnitPrice]

 

Stack Trace:

 

Class.ProductImport_BatchJob.execute: line 85, column 11 External entry point

 

I'm also posting the BatchJob Class below.

 

global class ProductImport_BatchJob implements Database.Batchable<SObject>{
 
  Date dateToRunProcessFor = null;
  String email = 'andy.bailey@bioscience.co.uk';
//  String email = 'jodil.davis@bioscience.co.uk';
// Fetching Standard Pricebook ID
  sObject pricebook = [select ID from Pricebook2 where IsStandard = TRUE];
 
  /* Old Query which picks products with Availability Status not equal to NLA,OBS and RP
  public String query =
    'Select Id, Availability_Status__c, Size__c, Supplier_Code__c, Catalogue_Number__c, UK_List_Price__c, Product_Name__c, Manufacturer__c, UOM__c ' +       
    'From CB_Products__c where ' +
    'Availability_Status__c != \'NLA\' and ' +
    'Availability_Status__c != \'OBS\' and ' +
    'Availability_Status__c != \'RP\'';
  */
  //New Query
  public String query = 'Select Id, Availability_Status__c, Size__c, Supplier_Code__c, Catalogue_Number__c, UK_List_Price__c, Product_Name__c, Manufacturer__c, UOM__c FROM CB_Products__c';
 
  List<Product2> productstoupload;
  List<PricebookEntry> pricebookupdate;
  List<PricebookEntry> pricebookinsert;
 
  global Database.QueryLocator start(Database.BatchableContext bc){
    return Database.getQueryLocator(query);
  }
   
  global void execute(Database.BatchableContext bc, List<sObject> scope){
 
  //Upserting products from CB_Products to Product2
 
     productstoupload = new List<Product2>();      
      for(sObject s : scope){
      CB_Products__c cbp = (CB_Products__c)s;
      Product2 prod = new Product2();
      // FIELD 'MAPPINGS':
      prod.Catalogue_Number__c     = cbp.Catalogue_Number__c;
      prod.Name                    = cbp.Product_Name__c;
      prod.Price__c                = cbp.UK_List_Price__c;
      prod.Manufacturer__c         = cbp.Manufacturer__c;
      prod.Availability_Status__c  = cbp.Availability_Status__c;
      prod.Supplier_Code__c        = cbp.Supplier_Code__c;
      prod.Size__c                 = cbp.Size__c;
      prod.UOM__c                  = cbp.UOM__c;
      prod.IsActive                = true;
      prod.SF_ID__c                = cbp.Id;           
      productstoupload.add(prod);                      
    }       
    upsert productstoupload SF_ID__c;       
   
  //Upserting entries from Product2 to PricebookEntry
 
    pricebookupdate = new List<PricebookEntry>();
    pricebookinsert = new List<PricebookEntry>(); 
   
 
   
    List<sObject> loopvar = [Select Id, Price__c, Availability_Status__c FROM Product2];
       
     for(sObject s : loopvar){
    
         Product2 prod = (Product2)s;               
         PricebookEntry pbe = new PricebookEntry();     
         pbe.Pricebook2Id=pricebook.ID;       
         pbe.Product2Id=prod.Id;
         pbe.UnitPrice=prod.Price__c;
         pbe.IsActive= true;
         pbe.UseStandardPrice=false;
        
        //Checking whether there is a Pricebook Entry exist for a particular product
     
         List<PricebookEntry> exist = [Select Id,Product2Id FROM PricebookEntry WHERE Product2Id = :prod.Id];
                    
       //If there is no existing entry then we will insert a new Pricebook Entry
                    
          if(exist.isEmpty()){
          pricebookinsert.add(pbe);
          }
         
       //Else we will update the existing entry
         
          else{       
          PricebookEntry pbupd = [Select Id,Product2Id,UnitPrice,Pricebook2Id,IsActive,UseStandardPrice FROM PricebookEntry WHERE Product2Id = :prod.Id];
          pbupd.UnitPrice=prod.Price__c;
          update pbupd;         
          }
         
    } 
   
    insert pricebookinsert;
   
    //update pricebookupdate;
   
  }
   
  global void finish(Database.BatchableContext bc){
    // Get the ID of the AsyncApexJob representing this batch job 
   
   // from Database.BatchableContext. 
   
   // Query the AsyncApexJob object to retrieve the current job's information. 
   
    AsyncApexJob a = [Select Id, Status, NumberOfErrors, JobItemsProcessed,
      TotalJobItems, CreatedBy.Email
      from AsyncApexJob where Id =
      :bc.getJobId()];
   // Send an email to the Apex job's submitter notifying of job completion. 
   
    Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
    mail.setToAddresses(new String[] {email});
    mail.setSubject('Apex Sharing Recalculation ' + a.Status);
    mail.setPlainTextBody
    ('ProductImport batch Apex job processed ' + a.TotalJobItems +
    ' batches with '+ a.NumberOfErrors + ' failures.');
    Messaging.sendEmail(new Messaging.SingleEmailMessage[] { mail });
  }

}

 

 

It would be a great help if someone could provide me some help on this error.

 

Many Thanks,

Joe

Hi

 

When Showheader="false" in <apex:Page> i am loosing my tab style. i need the style simillar to home page, but now i am geeting black color.

 

can any one help on this

 

Thanks.

  • September 08, 2011
  • Like
  • 0

Hi

 

In the home page component, i have created html code, while displaying, it is displayed with the name of the component. In my case i don't want that name. can any one help on this.

 

Thanks!

  • September 07, 2011
  • Like
  • 0

Hi

 

In my organization I have a scenario that, in Opportunity when the TYPE field = "Existing" then the Account(Lookup) Field should be enabled, otherwise it should be in disable state.


Can any one please help on this....

 

Thanks!!!

  • August 17, 2011
  • Like
  • 0

I created a visualforce page with option renderas="pdf" and contentType="application/pdf" . This page is displays a rich text content in pdf format. While the richText content does not have any images it works good but if it has images then the images does not render properly, they are blurring.

 

Code is like following :

<apex:page contentType="application/pdf" renderas="pdf" >

<apex:outText value="{!obj__c.richText__c}" />

</apex:page>

 

is there any trick to render images properly in pdf? thanks in advance for any help.

 

  • April 01, 2011
  • Like
  • 0