c# - Error while converting PPT to PDF -


i trying make application converts docx/xls/ppt pdf.

  1. conversion of docx , xls requires microsoft.office.core dll
  2. conversion of ppt requires office.dll

i converted 1 , 2 separately when try merge both of them i.e

when try add both reference (microsoft.office.core dll , office.dll) gives me error.

so, there problem in adding both dll's ?

229 error of same kind ---- error 1 cannot embed interop type 'microsoft.office.core.msoblogimagetype' found in both assembly 'e:\all pdf\watermark_pdf\pdf merger , protector source code\pdfmerger\obj\debug\interop.microsoft.office.core.dll' , 'c:\program files\microsoft visual studio 10.0\visual studio tools office\pia\office12\office.dll'. consider setting 'embed interop types' property false.

note - had changed "embed interop types" property false both dll's.

please help.

just use specific libraries:

using excel = microsoft.office.interop.excel; using word = microsoft.office.interop.word; using power = microsoft.office.interop.powerpoint; 

they should have need along not having namespace isssues between interlocking dll's

these found com references

edit: also, using correct namespaces? if post code helpful.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -