|
|
 |
| .NET Framework 1.x For discussing versions 1.0 and 1.1 of the Microsoft .NET Framework. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the .NET Framework 1.x section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

October 17th, 2007, 11:21 AM
|
|
Registered User
|
|
Join Date: Oct 2007
Location: aurangabad, maharashtra, India.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
implementing indesign files in asp.net
hi friends,
I am building an application in asp.net in which my task is to create a pdf file by using the Adobe Indesign CS2 in asp.net.
In this i am using Adobe Indesign CS2 trial version.
I am using the code which is found from the net but on running this is given an error That:
"System.UnauthorizedAccessException: Access is denied."
now tell me about this error and what i have to do to achieve this task. this is really urgent one
atleast reply if u don't know the answer also please.......
Here's my code::
Imports System
Imports System.Data
Imports System.Configuration
Imports System.Web
Imports System.Web.Security
Imports System.Web.UI
Imports System.Web.UI.WebControls
' Imports System.Web.UI.WebControls.WebParts
Imports System.Web.UI.HtmlControls
Imports InDesign
Public Class _Default
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim cstrInddFile As String = Server.MapPath("~/Archieve/yourstory_backcover1.indd")
Dim cstrXMLFile As String = Server.MapPath("~/Archieve/xml1.xml")
Dim cstrOutputFile As String = Server.MapPath("~/Archieve/out.pdf")
Dim indAppType As Type = Type.GetTypeFromProgID("InDesign.Application")
Dim objInDesign As InDesign.Application = DirectCast(Activator.CreateInstance(indAppType, True), InDesign.Application)
Dim objDoc As InDesign.Document = DirectCast(objInDesign.Open(cstrInddFile, False), InDesign.Document)
objDoc.ImportXML(cstrXMLFile)
Dim objPreset As InDesign.PDFExportPreset=DirectCast(objInDesign.PD FExportPresets.LastItem(),InDesign.PDFExportPreset )
objDoc.Export(idExportFormat.idPDFType, cstrOutputFile, False, objInDesign.PDFExportPresets("Press"))
End Sub
End Class
|

September 23rd, 2009, 02:04 PM
|
|
Registered User
|
|
Join Date: Sep 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
For Access Denied Error
This error occures when you didnt give permission for indesign in component services from control panel -> Administrative Tools-> Component Services
In that window select the adobe indesign component and select that properties and give user permission then it will works...
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |