Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > .NET Framework 1.x
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
.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 Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old October 17th, 2007, 10:21 AM
Registered User
 
Join Date: Oct 2007
Location: aurangabad, maharashtra, India.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to gopsy_25
Default 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

Reply With Quote
  #2 (permalink)  
Old October 17th, 2007, 10:32 AM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,105
Thanks: 1
Thanked 63 Times in 63 Posts
Send a message via AIM to dparsons
Default

Google knows what that error means:
http://www.google.com/search?hl=en&q...+is+denied.%22

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for:
Beginning Visual C# 2008
Professional Search Engine Optimization with ASP.NET
Professional IIS 7 and ASP.NET Integrated Programming
Wrox Blox: Introduction to Google Gears
Wrox Blox: Create Amazing Custom User Interfaces with WPF and .NET 3.0
================================================== =========
Reply With Quote
  #3 (permalink)  
Old September 23rd, 2009, 01:04 PM
Registered User
 
Join Date: Sep 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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...
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Implementing RSS FEED in Asp.Net suresh_net RSS and Atom 0 August 8th, 2008 10:15 AM
Integrating Asp and Asp.net files Manoah Classic ASP Professional 0 July 24th, 2008 10:41 PM
implementing autoarchive feature in asp.net sushil ASP.NET 2.0 Professional 0 June 7th, 2007 06:02 AM
Resource Files in ASP.net Manoj_21 ASP.NET 1.0 and 1.1 Professional 0 August 9th, 2006 07:52 AM
Execute VBS files via ASP.NET (VB.NET) Mario_Steiner ASP.NET 1.0 and 1.1 Professional 0 November 9th, 2005 06:49 AM



All times are GMT -4. The time now is 04:59 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.